aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorBill Wendling <5993918+bwendling@users.noreply.github.com>2024-04-11 00:33:40 +0000
committerGitHub <noreply@github.com>2024-04-11 00:33:40 +0000
commitfca51911d4668b3a6b79eb956327eb81fad3f40c (patch)
tree5ecae090dfb59b591c3bdf3eaec984a8093805ca /clang/lib/Lex/Preprocessor.cpp
parentbe10070f91b86a6f126d2451852242bfcb2cd366 (diff)
downloadllvm-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.cpp2
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);
}