Given that there is only one external user of Lexer::getLangOpts
we can remove getter entirely without much pain.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Lex/ModuleMap.cpp | ||
---|---|---|
1628 | That's interesting. ModuleMapParser::Map already has LangOpts member (which is const LangOptions &). If we could prove there are equal to Lexer::LangOpts after: https://reviews.llvm.org/D120334 maybe it would be possible to not introduce Lexer::getSpelling convenience method at all. |
clang/include/clang/Lex/Lexer.h | ||
---|---|---|
323 | nit: *static* |
Comment Actions
Rebased to https://reviews.llvm.org/D120334 and simplified by removing non-static Lexer::getSpelling function.
nit: *static*