[PATCH] D72378: [clang-tidy] Add `bugprone-reserved-identifier`
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 8 02:11:34 PST 2020
JonasToth added inline comments.
================
Comment at: clang-tools-extra/docs/clang-tidy/checks/bugprone-reserved-identifier.rst:34
+ If non-zero, inverts the check, i.e. flags names that are not reserved.
+ Default is `0`.
+
----------------
i think you need double-tick here. The highlighting seems weird, usually its orangy, isn't it?
================
Comment at: clang-tools-extra/test/clang-tidy/checkers/bugprone-reserved-identifier.cpp:13
+
+namespace _Ns {
+// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: declaration uses reserved identifier '_Ns', which causes undefined behavior [bugprone-reserved-identifier]
----------------
missing tests with templates, in this file.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72378/new/
https://reviews.llvm.org/D72378
More information about the cfe-commits
mailing list