We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33c1cad commit d8f9563Copy full SHA for d8f9563
clang-tools-extra/clang-tidy/bugprone/IncorrectEnableSharedFromThisCheck.cpp
@@ -27,6 +27,7 @@ void IncorrectEnableSharedFromThisCheck::registerMatchers(MatchFinder *Finder) {
27
.bind("base_rec")));
28
Finder->addMatcher(
29
cxxRecordDecl(
30
+ unless(isExpansionInSystemHeader()),
31
hasDirectBase(cxxBaseSpecifier(unless(isPublic()), hasType(QType))
32
.bind("base")))
33
.bind("derived"),
clang-tools-extra/test/clang-tidy/checkers/bugprone/incorrect-enable-shared-from-this.cpp
@@ -1,4 +1,4 @@
1
-// RUN: %check_clang_tidy -std=c++11 %s bugprone-incorrect-enable-shared-from-this %t
+// RUN: %check_clang_tidy -std=c++11-or-later %s bugprone-incorrect-enable-shared-from-this %t
2
3
// NOLINTBEGIN
4
namespace std {
0 commit comments