This revision was automatically updated to reflect the committed changes. r.stahl marked an inline comment as done. Closed by commit rGf625a8a250b3: [clang-format][tests] Explicitly specify style in some tests (authored by r.stahl).
Changed prior to commit: https://reviews.llvm.org/D61001?vs=196212&id=209500#toc Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D61001/new/ https://reviews.llvm.org/D61001 Files: clang/test/Format/adjust-indent.cpp clang/test/Format/disable-include-sorting.cpp clang/test/Format/language-detection.cpp clang/test/Format/xmloutput.cpp Index: clang/test/Format/xmloutput.cpp =================================================================== --- clang/test/Format/xmloutput.cpp +++ clang/test/Format/xmloutput.cpp @@ -1,4 +1,4 @@ -// RUN: clang-format -output-replacements-xml -sort-includes %s \ +// RUN: clang-format -style=LLVM -output-replacements-xml -sort-includes %s \ // RUN: | FileCheck -strict-whitespace %s // CHECK: <?xml Index: clang/test/Format/language-detection.cpp =================================================================== --- clang/test/Format/language-detection.cpp +++ clang/test/Format/language-detection.cpp @@ -1,8 +1,8 @@ // RUN: grep -Ev "// *[A-Z0-9_]+:" %s \ -// RUN: | clang-format -style=llvm -assume-filename=foo.js \ +// RUN: | clang-format -style=LLVM -assume-filename=foo.js \ // RUN: | FileCheck -strict-whitespace -check-prefix=CHECK1 %s // RUN: grep -Ev "// *[A-Z0-9_]+:" %s \ -// RUN: | clang-format -style=llvm -assume-filename=foo.cpp \ +// RUN: | clang-format -style=LLVM -assume-filename=foo.cpp \ // RUN: | FileCheck -strict-whitespace -check-prefix=CHECK2 %s // CHECK1: {{^a >>>= b;$}} // CHECK2: {{^a >> >= b;$}} Index: clang/test/Format/disable-include-sorting.cpp =================================================================== --- clang/test/Format/disable-include-sorting.cpp +++ clang/test/Format/disable-include-sorting.cpp @@ -1,4 +1,4 @@ -// RUN: clang-format %s | FileCheck %s +// RUN: clang-format %s -style=LLVM | FileCheck %s // RUN: clang-format %s -sort-includes -style="{SortIncludes: false}" | FileCheck %s // RUN: clang-format %s -sort-includes=false | FileCheck %s -check-prefix=NOT-SORTED Index: clang/test/Format/adjust-indent.cpp =================================================================== --- clang/test/Format/adjust-indent.cpp +++ clang/test/Format/adjust-indent.cpp @@ -1,4 +1,4 @@ -// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -lines=2:2 \ +// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -style=LLVM -lines=2:2 \ // RUN: | FileCheck -strict-whitespace %s void f() {
Index: clang/test/Format/xmloutput.cpp =================================================================== --- clang/test/Format/xmloutput.cpp +++ clang/test/Format/xmloutput.cpp @@ -1,4 +1,4 @@ -// RUN: clang-format -output-replacements-xml -sort-includes %s \ +// RUN: clang-format -style=LLVM -output-replacements-xml -sort-includes %s \ // RUN: | FileCheck -strict-whitespace %s // CHECK: <?xml Index: clang/test/Format/language-detection.cpp =================================================================== --- clang/test/Format/language-detection.cpp +++ clang/test/Format/language-detection.cpp @@ -1,8 +1,8 @@ // RUN: grep -Ev "// *[A-Z0-9_]+:" %s \ -// RUN: | clang-format -style=llvm -assume-filename=foo.js \ +// RUN: | clang-format -style=LLVM -assume-filename=foo.js \ // RUN: | FileCheck -strict-whitespace -check-prefix=CHECK1 %s // RUN: grep -Ev "// *[A-Z0-9_]+:" %s \ -// RUN: | clang-format -style=llvm -assume-filename=foo.cpp \ +// RUN: | clang-format -style=LLVM -assume-filename=foo.cpp \ // RUN: | FileCheck -strict-whitespace -check-prefix=CHECK2 %s // CHECK1: {{^a >>>= b;$}} // CHECK2: {{^a >> >= b;$}} Index: clang/test/Format/disable-include-sorting.cpp =================================================================== --- clang/test/Format/disable-include-sorting.cpp +++ clang/test/Format/disable-include-sorting.cpp @@ -1,4 +1,4 @@ -// RUN: clang-format %s | FileCheck %s +// RUN: clang-format %s -style=LLVM | FileCheck %s // RUN: clang-format %s -sort-includes -style="{SortIncludes: false}" | FileCheck %s // RUN: clang-format %s -sort-includes=false | FileCheck %s -check-prefix=NOT-SORTED Index: clang/test/Format/adjust-indent.cpp =================================================================== --- clang/test/Format/adjust-indent.cpp +++ clang/test/Format/adjust-indent.cpp @@ -1,4 +1,4 @@ -// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -lines=2:2 \ +// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -style=LLVM -lines=2:2 \ // RUN: | FileCheck -strict-whitespace %s void f() {
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits