[PATCH] D124726: Suggest typoed directives in preprocessor conditionals
    Ken Matsui via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed May 11 18:27:15 PDT 2022
    
    
  
ken-matsui added inline comments.
================
Comment at: clang/test/Preprocessor/suggest-typoed-directive.c:36
+// elfidef:   c2x-cpp2b-warning at -12 {{invalid preprocessing directive, did you mean '#elifdef'?}}
+// elfindef:  c2x-cpp2b-warning at -12 {{invalid preprocessing directive, did you mean '#elifdef'?}}
+// elfinndef: c2x-cpp2b-warning at -12 {{invalid preprocessing directive, did you mean '#elifndef'?}}
----------------
Here, `#elfindef` is suggested to `#elifdef`, not `#elifndef`, but I believe it will help many users to realize that they have typo'd `#elifndef`, or maybe they might have meant actually `#elifdef`.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124726/new/
https://reviews.llvm.org/D124726
    
    
More information about the cfe-commits
mailing list