[PATCH] D46317: [clang-tidy] New check bugprone-map-subscript-operator-lookup
Roman Lebedev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 1 08:18:03 PDT 2018
lebedev.ri added inline comments.
================
Comment at: clang-tidy/bugprone/MapSubscriptOperatorLookupCheck.cpp:25
+ hasName("operator[]"),
+ ofClass(hasAnyName("::std::map", "::std::unordered_map")))),
+ hasParent(implicitCastExpr(
----------------
I would imagine it might be best to make this configurable from the start.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D46317
More information about the cfe-commits
mailing list