================
@@ -1873,6 +1873,17 @@ Parser::TryAnnotateName(CorrectionCandidateCallback *CCC,
return AnnotatedNameKind::Unresolved;
}
+SourceLocation Parser::getEndOfPreviousToken() const {
+ SourceLocation TokenEndLoc = PP.getLocForEndOfToken(PrevTokLocation);
+ if (TokenEndLoc.isValid())
+ return TokenEndLoc;
+
+ if (Tok.getLocation().isMacroID())
+ return PP.getSourceManager().getSpellingLoc(Tok.getLocation());
----------------
efriedma-quic wrote:
I'm not sure what this getSpellingLoc() call accomplishes; at first glance,
it's just throwing away information about macro expansions.
https://github.com/llvm/llvm-project/pull/143460
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits