[clang] Avoid suggesting typoed directives in `.S` files
authorKen Matsui <vcs@kmatsui.me>
Mon, 16 May 2022 22:36:54 +0000 (15:36 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Mon, 16 May 2022 22:46:59 +0000 (15:46 -0700)
commit45e01ce5fe6a5e4dc25ffdf626caa344fbcb93dd
tree1ba485d668f731ae371caebb2249c661d043489b
parent76944420115364a8d259b299ca688b18118ae1b6
[clang] Avoid suggesting typoed directives in `.S` files

This patch is itended to avoid suggesting typoed directives in `.S`
files to support the cases of `#` directives treated as comments or
various pseudo-ops. The feature is implemented in
https://reviews.llvm.org/D124726.

Fixes: https://reviews.llvm.org/D124726#3516346.

Reviewed By: nickdesaulniers

Differential Revision: https://reviews.llvm.org/D125727
clang/lib/Lex/PPDirectives.cpp
clang/test/Preprocessor/suggest-typoed-directive.S [new file with mode: 0644]