Skip to content

Commit e6ac98a

Browse files
[clang-tidy] Revert ASTMatcherNodeTest.cpp
Test `__asm` syntax vs `__asm__`
1 parent 72cd0ba commit e6ac98a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ TEST_P(ASTMatchersTest, PredefinedExpr) {
11801180
}
11811181

11821182
TEST_P(ASTMatchersTest, FileScopeAsmDecl) {
1183-
EXPECT_TRUE(matches("__asm__(\"nop\");", fileScopeAsmDecl()));
1183+
EXPECT_TRUE(matches("__asm(\"nop\");", fileScopeAsmDecl()));
11841184
EXPECT_TRUE(
11851185
notMatches("void foo() { __asm(\"mov al, 2\"); }", fileScopeAsmDecl()));
11861186
}
@@ -2448,15 +2448,17 @@ TEST_P(ASTMatchersTest, LambdaCaptureTest_BindsToCaptureOfReferenceType) {
24482448
"int main() {"
24492449
" int a;"
24502450
" f(a);"
2451-
"}", matcher));
2451+
"}",
2452+
matcher));
24522453
EXPECT_FALSE(matches("template <class ...T> void f(T &...args) {"
24532454
" [...args = args] () mutable {"
24542455
" }();"
24552456
"}"
24562457
"int main() {"
24572458
" int a;"
24582459
" f(a);"
2459-
"}", matcher));
2460+
"}",
2461+
matcher));
24602462
}
24612463

24622464
TEST_P(ASTMatchersTest, IsDerivedFromRecursion) {
@@ -2634,7 +2636,7 @@ TEST(ASTMatchersTestObjC, ObjCStringLiteral) {
26342636
" [Test someFunction:@\"Ola!\"]; "
26352637
"}\n"
26362638
"@end ";
2637-
EXPECT_TRUE(matchesObjC(Objc1String, objcStringLiteral()));
2639+
EXPECT_TRUE(matchesObjC(Objc1String, objcStringLiteral()));
26382640
}
26392641

26402642
TEST(ASTMatchersTestObjC, ObjCDecls) {

0 commit comments

Comments
 (0)