diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2023-08-11 07:41:51 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2023-08-11 07:43:43 -0400 |
commit | 0ce056a814f8dbfd8d9b7720ce1df489c6ba5ddb (patch) | |
tree | 2bc085a7d98c4f03d9f433108a28cdfd284ae794 /clang/lib/Sema/SemaCodeComplete.cpp | |
parent | 81300f75f4da87caff36026b10d40c2391e246d0 (diff) | |
download | llvm-0ce056a814f8dbfd8d9b7720ce1df489c6ba5ddb.zip llvm-0ce056a814f8dbfd8d9b7720ce1df489c6ba5ddb.tar.gz llvm-0ce056a814f8dbfd8d9b7720ce1df489c6ba5ddb.tar.bz2 |
[C23] Rename C2x -> C23; NFC
This does the rename for most internal uses of C2x, but does not rename
or reword diagnostics (those will be done in a follow-up).
I also updated standards references and citations to the final wording
in the standard.
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index 476baad..b9760e8 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -2673,7 +2673,7 @@ static void AddOrdinaryNameResults(Sema::ParserCompletionContext CCC, Scope *S, Results.AddResult(Result(Builder.TakeString())); } - if (SemaRef.getLangOpts().C2x) { + if (SemaRef.getLangOpts().C23) { // nullptr Builder.AddResultTypeChunk("nullptr_t"); Builder.AddTypedTextChunk("nullptr"); @@ -4533,7 +4533,7 @@ void Sema::CodeCompleteAttribute(AttributeCommonInfo::Syntax Syntax, } bool SyntaxSupportsGuards = Syntax == AttributeCommonInfo::AS_GNU || Syntax == AttributeCommonInfo::AS_CXX11 || - Syntax == AttributeCommonInfo::AS_C2x; + Syntax == AttributeCommonInfo::AS_C23; llvm::DenseSet<llvm::StringRef> FoundScopes; auto AddCompletions = [&](const ParsedAttrInfo &A) { @@ -4547,7 +4547,7 @@ void Sema::CodeCompleteAttribute(AttributeCommonInfo::Syntax Syntax, llvm::StringRef Name = S.NormalizedFullName; llvm::StringRef Scope; if ((Syntax == AttributeCommonInfo::AS_CXX11 || - Syntax == AttributeCommonInfo::AS_C2x)) { + Syntax == AttributeCommonInfo::AS_C23)) { std::tie(Scope, Name) = Name.split("::"); if (Name.empty()) // oops, unscoped std::swap(Name, Scope); |