File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -700,6 +700,10 @@ ResultBuilder::ShadowMapEntry::end() const {
700
700
// Filter out names reserved for the implementation if they come from a
701
701
// system header.
702
702
static bool shouldIgnoreDueToReservedName (const NamedDecl *ND, Sema &SemaRef) {
703
+ // Debuggers want access to all identifiers, including reserved ones.
704
+ if (SemaRef.getLangOpts ().DebuggerSupport )
705
+ return false ;
706
+
703
707
ReservedIdentifierStatus Status = ND->isReserved (SemaRef.getLangOpts ());
704
708
// Ignore reserved names for compiler provided decls.
705
709
if (isReservedInAllContexts (Status) && ND->getLocation ().isInvalid ())
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ typedef struct t _TYPEDEF;
5
5
void foo () {
6
6
int y ;
7
7
// RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -code-completion-at=%s:%(line-1):9 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
8
+ // CHECK-CC1-NOT: __builtin_va_list
8
9
// CHECK-CC1-NOT: __INTEGER_TYPE
9
10
// CHECK-CC1: _Imaginary
10
11
// CHECK-CC1: _MyPrivateType
@@ -15,4 +16,8 @@ void foo() {
15
16
// CHECK-CC1: y
16
17
17
18
// PR8744
18
- // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -code-completion-at=%s:%(line-17):11 %s
19
+ // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -code-completion-at=%s:%(line-18):11 %s
20
+
21
+ // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -fdebugger-support -code-completion-at=%s:%(line-15):9 %s -o - | FileCheck -check-prefix=CHECK-DBG %s
22
+ // CHECK-DBG: __builtin_va_list
23
+ // CHECK-DBG: __INTEGER_TYPE
You can’t perform that action at this time.
0 commit comments