[PATCH] D125727: Avoid suggesting typoed directives in `.S` files
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 16 14:31:08 PDT 2022
nickdesaulniers added inline comments.
================
Comment at: clang/lib/Lex/PPDirectives.cpp:484
const SourceLocation &EndLoc) const {
+ // If this is a `.S` file, treat unknown # directives as non-preprocessor
+ // directives.
----------------
Also, IIRC the token used to start a comment in assembler differs per architecture. This might be the simplest fix, for now.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125727/new/
https://reviews.llvm.org/D125727
More information about the cfe-commits
mailing list