Home
last modified time | relevance | path

Searched refs:verifyFormat (Results 1 – 25 of 27) sorted by relevance

12

/external/clang/unittests/Format/
DFormatTestJS.cpp49 static void verifyFormat( in verifyFormat() function in clang::format::FormatTestJS
56 static void verifyFormat( in verifyFormat() function in clang::format::FormatTestJS
66 verifyFormat("/* aaaaaaaaaaaaa */ aaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" in TEST_F()
71 verifyFormat("a == = b;"); in TEST_F()
72 verifyFormat("a != = b;"); in TEST_F()
74 verifyFormat("a === b;"); in TEST_F()
75 verifyFormat("aaaaaaa ===\n b;", getGoogleJSStyleWithColumns(10)); in TEST_F()
76 verifyFormat("a !== b;"); in TEST_F()
77 verifyFormat("aaaaaaa !==\n b;", getGoogleJSStyleWithColumns(10)); in TEST_F()
78 verifyFormat("if (a + b + c +\n" in TEST_F()
[all …]
DFormatTest.cpp68 void verifyFormat(llvm::StringRef Code, in verifyFormat() function in clang::format::__anon571c06600111::FormatTest
80 verifyFormat(Code, getGoogleStyle()); in verifyGoogleFormat()
84 verifyFormat(text); in verifyIndependentOfContext()
85 verifyFormat(llvm::Twine("void f() { " + text + " }").str()); in verifyIndependentOfContext()
129 verifyFormat("Method(f1, f2(f3));"); in TEST_F()
130 verifyFormat("Method(f1(f2, f3()));"); in TEST_F()
131 verifyFormat("Method(f1(f2, (f3())));"); in TEST_F()
135 verifyFormat("vector<::Type> v;"); in TEST_F()
136 verifyFormat("::ns::SomeFunction(::ns::SomeOtherFunction())"); in TEST_F()
137 verifyFormat("static constexpr bool Bar = decltype(bar())::value;"); in TEST_F()
[all …]
DFormatTestJava.cpp46 static void verifyFormat( in verifyFormat() function in clang::format::FormatTestJava
54 verifyFormat("someObject.and();"); in TEST_F()
58 verifyFormat("a[b >> 1] = (byte) (c() << 4);"); in TEST_F()
63 verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n" in TEST_F()
67 verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa instanceof\n" in TEST_F()
70 verifyFormat("return aaaaaaaaaaaaaaaaaaa instanceof bbbbbbbbbbbbbbbbbbbbbbb\n" in TEST_F()
75 verifyFormat("class SomeClass {\n" in TEST_F()
90 verifyFormat("public some.package.Type someFunction( // comment\n" in TEST_F()
95 verifyFormat("SomeClass.class.getName();"); in TEST_F()
96 verifyFormat("Class c = SomeClass.class;"); in TEST_F()
[all …]
DFormatTestProto.cpp40 static void verifyFormat(llvm::StringRef Code) { in verifyFormat() function in clang::format::FormatTestProto
46 verifyFormat("message SomeMessage {\n" in TEST_F()
49 verifyFormat("message SomeMessage {\n" in TEST_F()
52 verifyFormat("message SomeMessage {\n" in TEST_F()
57 verifyFormat("message SomeMessage {\n" in TEST_F()
67 verifyFormat("optional string operator = 1;"); in TEST_F()
71 verifyFormat("enum Type {\n" in TEST_F()
76 verifyFormat("enum Type {\n" in TEST_F()
79 verifyFormat("enum Type {\n" in TEST_F()
88 verifyFormat("rpc Search(SearchRequest) returns (SearchResponse);"); in TEST_F()
[all …]
/external/llvm-project/clang/unittests/Format/
DFormatTestJS.cpp48 static void verifyFormat( in verifyFormat() function in clang::format::FormatTestJS
56 static void verifyFormat( in verifyFormat() function in clang::format::FormatTestJS
67 verifyFormat("/* aaaaaaaaaaaaa */ aaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" in TEST_F()
233 verifyFormat("a == = b;"); in TEST_F()
234 verifyFormat("a != = b;"); in TEST_F()
236 verifyFormat("a === b;"); in TEST_F()
237 verifyFormat("aaaaaaa ===\n b;", getGoogleJSStyleWithColumns(10)); in TEST_F()
238 verifyFormat("a !== b;"); in TEST_F()
239 verifyFormat("aaaaaaa !==\n b;", getGoogleJSStyleWithColumns(10)); in TEST_F()
240 verifyFormat("if (a + b + c +\n" in TEST_F()
[all …]
DFormatTestObjC.cpp71 #define verifyFormat(...) _verifyFormat(__FILE__, __LINE__, __VA_ARGS__) macro
193 verifyFormat("@try {\n" in TEST_F()
200 verifyFormat("DEBUG({\n" in TEST_F()
208 verifyFormat("@autoreleasepool {\n" in TEST_F()
216 verifyFormat("@autoreleasepool\n" in TEST_F()
228 verifyFormat("int aaaaaaaaaaaaaaaa(\n" in TEST_F()
231 verifyFormat("int aaaaaaaaaaaaaaaa(\n" in TEST_F()
238 verifyFormat("@synchronized(self) {\n" in TEST_F()
246 verifyFormat("@synchronized(self)\n" in TEST_F()
257 verifyFormat("@interface Foo : NSObject <NSSomeDelegate> {\n" in TEST_F()
[all …]
DFormatTest.cpp117 #define verifyFormat(...) _verifyFormat(__FILE__, __LINE__, __VA_ARGS__) macro
118 #define verifyGoogleFormat(Code) verifyFormat(Code, getGoogleStyle())
161 verifyFormat("Method(f1, f2(f3));"); in TEST_F()
162 verifyFormat("Method(f1(f2, f3()));"); in TEST_F()
163 verifyFormat("Method(f1(f2, (f3())));"); in TEST_F()
167 verifyFormat("vector<::Type> v;"); in TEST_F()
168 verifyFormat("::ns::SomeFunction(::ns::SomeOtherFunction())"); in TEST_F()
169 verifyFormat("static constexpr bool Bar = decltype(bar())::value;"); in TEST_F()
170 verifyFormat("static constexpr bool Bar = typeof(bar())::value;"); in TEST_F()
171 verifyFormat("static constexpr bool Bar = __underlying_type(bar())::value;"); in TEST_F()
[all …]
DFormatTestTextProto.cpp37 static void verifyFormat(llvm::StringRef Code, const FormatStyle &Style) { in verifyFormat() function in clang::format::FormatTestTextProto
42 static void verifyFormat(llvm::StringRef Code) { in verifyFormat() function in clang::format::FormatTestTextProto
45 verifyFormat(Code, Style); in verifyFormat()
50 verifyFormat("field_a: OK field_b: OK field_c: OK field_d: OK field_e: OK"); in TEST_F()
54 verifyFormat("msg_field: {}"); in TEST_F()
56 verifyFormat("msg_field: { field_a: A }"); in TEST_F()
58 verifyFormat("msg_field: { field_a: \"OK\" field_b: 123 }"); in TEST_F()
60 verifyFormat("msg_field: {\n" in TEST_F()
68 verifyFormat("msg_field {}"); in TEST_F()
70 verifyFormat("msg_field { field_a: A }"); in TEST_F()
[all …]
DFormatTestJava.cpp45 static void verifyFormat( in verifyFormat() function in clang::format::FormatTestJava
54 verifyFormat("someObject.and();"); in TEST_F()
58 verifyFormat("a[b >> 1] = (byte) (c() << 4);"); in TEST_F()
63 verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n" in TEST_F()
67 verifyFormat("return aaaaaaaaaaaaaaaaaaaaaaaaaaaaa instanceof\n" in TEST_F()
70 verifyFormat("return aaaaaaaaaaaaaaaaaaa instanceof bbbbbbbbbbbbbbbbbbbbbbb\n" in TEST_F()
75 verifyFormat("class SomeClass {\n" in TEST_F()
90 verifyFormat("public some.package.Type someFunction( // comment\n" in TEST_F()
95 verifyFormat("SomeClass.class.getName();"); in TEST_F()
96 verifyFormat("Class c = SomeClass.class;"); in TEST_F()
[all …]
DFormatTestProto.cpp39 static void verifyFormat(llvm::StringRef Code) { in verifyFormat() function in clang::format::FormatTestProto
46 verifyFormat("message SomeMessage {\n" in TEST_F()
49 verifyFormat("message SomeMessage {\n" in TEST_F()
52 verifyFormat("message SomeMessage {\n" in TEST_F()
57 verifyFormat("message SomeMessage {\n" in TEST_F()
64 verifyFormat("message SomeMessage {\n" in TEST_F()
90 verifyFormat("optional string operator = 1;"); in TEST_F()
94 verifyFormat("enum Type {\n" in TEST_F()
99 verifyFormat("enum Type {\n" in TEST_F()
102 verifyFormat("enum Type {\n" in TEST_F()
[all …]
DFormatTestCSharp.cpp45 static void verifyFormat( in verifyFormat() function in clang::format::FormatTestCSharp
54 verifyFormat("public class SomeClass\n" in TEST_F()
79 verifyFormat("public class SomeEmptyClass {}", Style); in TEST_F()
81 verifyFormat("public class SomeTinyClass {\n" in TEST_F()
85 verifyFormat("private class SomeTinyClass {\n" in TEST_F()
89 verifyFormat("protected class SomeTinyClass {\n" in TEST_F()
93 verifyFormat("internal class SomeTinyClass {\n" in TEST_F()
100 verifyFormat("public String toString()\n" in TEST_F()
103 verifyFormat("private String toString()\n" in TEST_F()
106 verifyFormat("protected String toString()\n" in TEST_F()
[all …]
DFormatTestComments.cpp65 void verifyFormat(llvm::StringRef Code, in verifyFormat() function in clang::format::__anon198b57740111::FormatTestComments
72 verifyFormat(Code, getGoogleStyle()); in verifyGoogleFormat()
89 verifyFormat("//* */"); in TEST_F()
90 verifyFormat("// line 1\n" in TEST_F()
94 verifyFormat("void f() {\n" in TEST_F()
97 verifyFormat("SomeObject\n" in TEST_F()
100 verifyFormat("auto result = SomeObject\n" in TEST_F()
103 verifyFormat("void f(int i, // some comment (probably for i)\n" in TEST_F()
106 verifyFormat("void f(int i,\n" in TEST_F()
112 verifyFormat("int i // This is a fancy variable\n" in TEST_F()
[all …]
DFormatTestTableGen.cpp39 static void verifyFormat(llvm::StringRef Code) { in verifyFormat() function in clang::format::FormatTestTableGen
46 verifyFormat("include \"OptParser.td\"\n" in TEST_F()
55 verifyFormat("def flag : Flag<[\"-\", \"--\"], \"foo\">;\n"); in TEST_F()
/external/mockftpserver/tags/2.1/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
85verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
91verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
107 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {
/external/mockftpserver/tags/2.0.2/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
85verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
91verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
107 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {
/external/mockftpserver/tags/2.5/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
85verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
91verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
107 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {
/external/mockftpserver/tags/2.3/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
85verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
91verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
107 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
85verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
91verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
107 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {
/external/mockftpserver/tags/2.2/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
85verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
91verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
107 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {
/external/mockftpserver/tags/2.4/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
85verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
91verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
107 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {
/external/mockftpserver/tags/2.0/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
74verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
84 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {
/external/mockftpserver/tags/2.0-rc1/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
74verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
84 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
74verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
84 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
74verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
84 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {
/external/mockftpserver/tags/2.0.1/src/test/groovy/org/mockftpserver/fake/filesystem/
DUnixDirectoryListingFormatterTest.groovy55verifyFormat(fileSystemEntry, "-rw-r--r-- 1 owner123 group456 11 $lastModifiedFormat…
61verifyFormat(fileSystemEntry, "-rwxrwxrwx 1 none none 11 $lastModifiedFormat…
68verifyFormat(fileSystemEntry, "drwxr-xr-x 1 owner123 group456 0 $lastModifiedFormat…
74verifyFormat(fileSystemEntry, "drwxrwxrwx 1 none none 0 $lastModifiedFormat…
84 private void verifyFormat(FileSystemEntry fileSystemEntry, String expectedResult) {

12