[PATCH] D77493: [clang-tidy] Add do-not-refer-atomic-twice check

Whisperity via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 9 01:32:06 PDT 2020


whisperity added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/bugprone/DoNotReferAtomicTwiceCheck.cpp:38
+  diag(MatchedRef->getExprLoc(),
+       "Do not refer to '%0' atomic variable twice in an expression")
+      << MatchedVar->getName();
----------------
atomic variable '%0'


================
Comment at: clang-tools-extra/docs/ReleaseNotes.rst:82
+
+  Finds atomic variable which is referred twice in an expression.
+
----------------
atomic variable**s** which **are**


Repository:
  rCTE Clang Tools Extra

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77493/new/

https://reviews.llvm.org/D77493





More information about the cfe-commits mailing list