diff options
author | Jun Zhang <jun@junz.org> | 2022-04-16 11:27:18 +0800 |
---|---|---|
committer | Jun Zhang <jun@junz.org> | 2022-04-16 11:31:40 +0800 |
commit | 7fde4e221300dbdefe9cdd70ff59f22f1dc9aee9 (patch) | |
tree | ab9acfc45dd646535ba945d2ecba0bef56f5f281 /clang/lib/Sema/SemaCodeComplete.cpp | |
parent | 9f5f2eb2a1085d49afbf9e6912086c6a3b5e6a95 (diff) | |
download | llvm-7fde4e221300dbdefe9cdd70ff59f22f1dc9aee9.zip llvm-7fde4e221300dbdefe9cdd70ff59f22f1dc9aee9.tar.gz llvm-7fde4e221300dbdefe9cdd70ff59f22f1dc9aee9.tar.bz2 |
Add some helpers to better check Scope's kind. NFC
Signed-off-by: Jun Zhang <jun@junz.org>
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index c1492ff..30720c1 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -2122,8 +2122,7 @@ static void AddOrdinaryNameResults(Sema::ParserCompletionContext CCC, Scope *S, if (CCC == Sema::PCC_Class) { AddTypedefResult(Results); - bool IsNotInheritanceScope = - !(S->getFlags() & Scope::ClassInheritanceScope); + bool IsNotInheritanceScope = !S->isClassInheritanceScope(); // public: Builder.AddTypedTextChunk("public"); if (IsNotInheritanceScope && Results.includeCodePatterns()) |