[PATCH] D63929: [clang-tidy] - Introduce abseil-prefixed-thread-annotations check.
    Dmitri Gribenko via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Jun 28 06:46:51 PDT 2019
    
    
  
gribozavr added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/abseil/PrefixedThreadAnnotationsCheck.cpp:43
+    FixItHint hint = FixItHint::CreateInsertion(Range.getBegin(), "ABSL_");
+    Check.diag(Range.getBegin(), "usage of unprefixed thread annotation")
+        << hint;
----------------
gribozavr wrote:
> "unprefixed" is not something that the user cares about. Try wording it the message around deprecation. Describing the fix-it in the message is also a good idea.
> 
> "annotations without the 'ABSL_' prefix are deprecated; use the new name instead"
Same suggestion for the check name. WDYT about "DeprecatedThreadAnnotationsCheck"?
Repository:
  rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63929/new/
https://reviews.llvm.org/D63929
    
    
More information about the llvm-commits
mailing list