diff options
author | Bill Wendling <5993918+bwendling@users.noreply.github.com> | 2024-04-11 00:33:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 00:33:40 +0000 |
commit | fca51911d4668b3a6b79eb956327eb81fad3f40c (patch) | |
tree | 5ecae090dfb59b591c3bdf3eaec984a8093805ca /clang/lib/Lex/Preprocessor.cpp | |
parent | be10070f91b86a6f126d2451852242bfcb2cd366 (diff) | |
download | llvm-fca51911d4668b3a6b79eb956327eb81fad3f40c.zip llvm-fca51911d4668b3a6b79eb956327eb81fad3f40c.tar.gz llvm-fca51911d4668b3a6b79eb956327eb81fad3f40c.tar.bz2 |
[NFC][Clang] Improve const correctness for IdentifierInfo (#79365)
The IdentifierInfo isn't typically modified. Use 'const' wherever
possible.
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 031ed1e..0b70192 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -759,7 +759,7 @@ void Preprocessor::HandlePoisonedIdentifier(Token & Identifier) { Diag(Identifier,it->second) << Identifier.getIdentifierInfo(); } -void Preprocessor::updateOutOfDateIdentifier(IdentifierInfo &II) const { +void Preprocessor::updateOutOfDateIdentifier(const IdentifierInfo &II) const { assert(II.isOutOfDate() && "not out of date"); getExternalSource()->updateOutOfDateIdentifier(II); } |