Index: clang-doc/BitcodeWriter.cpp =================================================================== --- clang-doc/BitcodeWriter.cpp +++ clang-doc/BitcodeWriter.cpp @@ -309,10 +309,8 @@ // FIXME: Assert that the line number is of the appropriate size. Record.push_back(Loc.LineNumber); assert(Loc.Filename.size() < (1U << BitCodeConstants::StringLengthSize)); - // Record.push_back(Loc.Filename.size()); - // Stream.EmitRecordWithBlob(Abbrevs.get(ID), Record, Loc.Filename); - Record.push_back(4); - Stream.EmitRecordWithBlob(Abbrevs.get(ID), Record, "test"); + Record.push_back(Loc.Filename.size()); + Stream.EmitRecordWithBlob(Abbrevs.get(ID), Record, Loc.Filename); } void ClangDocBitcodeWriter::emitRecord(bool Val, RecordId ID) { Index: test/clang-doc/bc-comment.cpp =================================================================== --- test/clang-doc/bc-comment.cpp +++ test/clang-doc/bc-comment.cpp @@ -32,169 +32,169 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/0000000000000000000000000000000000000000.bc | FileCheck %s --check-prefix CHECK-0 // CHECK-0: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'F' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'FullComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParagraphComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'BlockCommandComment' // CHECK-0-NEXT: blob data = 'brief' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParagraphComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: blob data = ' Brief description.' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParagraphComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: blob data = ' Extended description that' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: blob data = ' continues onto the next line.' // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParagraphComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'HTMLStartTagComment' // CHECK-0-NEXT: blob data = 'ul' // CHECK-0-NEXT: blob data = 'class' -// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: blob data = 'test' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'HTMLStartTagComment' // CHECK-0-NEXT: blob data = 'li' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: blob data = ' Testing.' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'HTMLEndTagComment' // CHECK-0-NEXT: blob data = 'ul' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParagraphComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'VerbatimBlockComment' // CHECK-0-NEXT: blob data = 'verbatim' // CHECK-0-NEXT: blob data = 'endverbatim' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'VerbatimBlockLineComment' // CHECK-0-NEXT: blob data = ' The description continues.' // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParagraphComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: blob data = ' --' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParamCommandComment' // CHECK-0-NEXT: blob data = '[out]' // CHECK-0-NEXT: blob data = 'I' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParagraphComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: blob data = ' is a parameter.' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParamCommandComment' // CHECK-0-NEXT: blob data = '[in]' // CHECK-0-NEXT: blob data = 'J' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParagraphComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: blob data = ' is a parameter.' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'BlockCommandComment' // CHECK-0-NEXT: blob data = 'return' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParagraphComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: blob data = ' void' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'FullComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParagraphComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: blob data = ' Bonus comment on definition' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'int' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'I' // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'int' // CHECK-0-NEXT: // CHECK-0-NEXT: Index: test/clang-doc/bc-linkage.cpp =================================================================== --- test/clang-doc/bc-linkage.cpp +++ test/clang-doc/bc-linkage.cpp @@ -99,58 +99,58 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/8960B5C9247D6F5C532756E53A1AD1240FA2146F.bc | FileCheck %s --check-prefix CHECK-0 // CHECK-0: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'named' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'namedFunction' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'named' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'namedStaticFunction' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'named' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'namedInlineFunction' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'named' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: @@ -160,105 +160,105 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/7CDD73DCD6CD72F7E5CE25502810A182C66C4B45.bc | FileCheck %s --check-prefix CHECK-1 // CHECK-1: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'Class' -// CHECK-1-NEXT: blob data = '{{.*}}' +// CHECK-1-NEXT: blob data = '{{.*}}' // CHECK-1-NEXT: -// CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'int' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'publicField' // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'int' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'protectedField' // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'int' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'privateField' // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'publicMethod' -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'Class' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: blob data = '{{.*}}' -// CHECK-1-NEXT: +// CHECK-1-NEXT: blob data = '{{.*}}' +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'Class' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'void' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'protectedMethod' -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'Class' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: blob data = '{{.*}}' -// CHECK-1-NEXT: +// CHECK-1-NEXT: blob data = '{{.*}}' +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'Class' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'void' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'privateMethod' -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'Class' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: blob data = '{{.*}}' -// CHECK-1-NEXT: +// CHECK-1-NEXT: blob data = '{{.*}}' +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'Class' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'void' // CHECK-1-NEXT: // CHECK-1-NEXT: @@ -268,112 +268,112 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/0000000000000000000000000000000000000000.bc | FileCheck %s --check-prefix CHECK-2 // CHECK-2: -// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'function' -// CHECK-2-NEXT: blob data = '{{.*}}' -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: blob data = '{{.*}}' +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'void' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'x' // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'inlinedFunction' -// CHECK-2-NEXT: blob data = '{{.*}}' -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: blob data = '{{.*}}' +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'x' // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'functionWithInnerClass' -// CHECK-2-NEXT: blob data = '{{.*}}' -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: blob data = '{{.*}}' +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'x' // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'inlinedFunctionWithInnerClass' -// CHECK-2-NEXT: blob data = '{{.*}}' -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: blob data = '{{.*}}' +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'x' // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'staticFunction' -// CHECK-2-NEXT: blob data = '{{.*}}' -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: blob data = '{{.*}}' +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'void' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'x' // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'staticFunctionWithInnerClass' -// CHECK-2-NEXT: blob data = '{{.*}}' -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: blob data = '{{.*}}' +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: @@ -384,129 +384,129 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/4712C5FA37B298A25501D1033C619B65B0ECC449.bc | FileCheck %s --check-prefix CHECK-3 // CHECK-3: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'NamedClass' -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'named' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: blob data = '{{.*}}' +// CHECK-3-NEXT: blob data = '{{.*}}' // CHECK-3-NEXT: -// CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'int' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'namedPublicField' // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'int' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'namedProtectedField' // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'int' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'namedPrivateField' // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'namedPublicMethod' -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'NamedClass' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'named' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: blob data = '{{.*}}' -// CHECK-3-NEXT: +// CHECK-3-NEXT: blob data = '{{.*}}' +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'NamedClass' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'void' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'namedProtectedMethod' -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'NamedClass' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'named' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: blob data = '{{.*}}' -// CHECK-3-NEXT: +// CHECK-3-NEXT: blob data = '{{.*}}' +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'NamedClass' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'void' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'namedPrivateMethod' -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'NamedClass' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'named' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: blob data = '{{.*}}' -// CHECK-3-NEXT: +// CHECK-3-NEXT: blob data = '{{.*}}' +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'NamedClass' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'void' // CHECK-3-NEXT: // CHECK-3-NEXT: @@ -516,125 +516,125 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/6E8FB72A89761E77020BFCEE9A9A6E64B15CC2A9.bc | FileCheck %s --check-prefix CHECK-4 // CHECK-4: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'AnonClass' -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: blob data = '{{.*}}' +// CHECK-4-NEXT: blob data = '{{.*}}' // CHECK-4-NEXT: -// CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'int' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'anonPublicField' // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'int' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'anonProtectedField' // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'int' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'anonPrivateField' // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'anonPublicMethod' -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'AnonClass' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: blob data = '{{.*}}' -// CHECK-4-NEXT: +// CHECK-4-NEXT: blob data = '{{.*}}' +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'AnonClass' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'void' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'anonProtectedMethod' -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'AnonClass' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: blob data = '{{.*}}' -// CHECK-4-NEXT: +// CHECK-4-NEXT: blob data = '{{.*}}' +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'AnonClass' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'void' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'anonPrivateMethod' -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'AnonClass' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: blob data = '{{.*}}' -// CHECK-4-NEXT: +// CHECK-4-NEXT: blob data = '{{.*}}' +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'AnonClass' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'void' // CHECK-4-NEXT: // CHECK-4-NEXT: @@ -644,54 +644,54 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/83CC52D32583E0771710A7742DE81C839E953AC8.bc | FileCheck %s --check-prefix CHECK-5 // CHECK-5: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'anonFunction' -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: blob data = '{{.*}}' -// CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: blob data = '{{.*}}' +// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'void' // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'anonStaticFunction' -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: blob data = '{{.*}}' -// CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: blob data = '{{.*}}' +// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'void' // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'anonInlineFunction' -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: blob data = '{{.*}}' -// CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: blob data = '{{.*}}' +// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'void' // CHECK-5-NEXT: // CHECK-5-NEXT: Index: test/clang-doc/bc-module.cpp =================================================================== --- test/clang-doc/bc-module.cpp +++ test/clang-doc/bc-module.cpp @@ -19,65 +19,65 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/0000000000000000000000000000000000000000.bc | FileCheck %s --check-prefix CHECK-0 // CHECK-0: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'moduleFunction' -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'int' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'int' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'x' // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'staticModuleFunction' -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'int' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'int' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'x' // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'exportedModuleFunction' -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'double' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'double' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'y' // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'int' // CHECK-0-NEXT: // CHECK-0-NEXT: Index: test/clang-doc/bc-namespace.cpp =================================================================== --- test/clang-doc/bc-namespace.cpp +++ test/clang-doc/bc-namespace.cpp @@ -30,25 +30,25 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/8D042EFFC98B373450BC6B5B90A330C25A150E9C.bc | FileCheck %s --check-prefix CHECK-0 // CHECK-0: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'A' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'f' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'A' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: @@ -58,64 +58,64 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/E21AF79E2A9D02554BA090D10DF39FE273F5CDB5.bc | FileCheck %s --check-prefix CHECK-1 // CHECK-1: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'B' -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'A' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'func' -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'B' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'A' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: blob data = '{{.*}}' -// CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: blob data = '{{.*}}' +// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'enum A::B::E' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'int' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'i' // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'E' -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'B' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'A' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: blob data = '{{.*}}' +// CHECK-1-NEXT: blob data = '{{.*}}' // CHECK-1-NEXT: blob data = 'X' // CHECK-1-NEXT: // CHECK-1-NEXT: Index: test/clang-doc/bc-record.cpp =================================================================== --- test/clang-doc/bc-record.cpp +++ test/clang-doc/bc-record.cpp @@ -46,82 +46,82 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/289584A8E0FF4178A794622A547AA622503967A1.bc | FileCheck %s --check-prefix CHECK-0 // CHECK-0: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'E' -// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: blob data = '{{.*}}' // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'E' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'E' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'E' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = '~E' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'E' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'E' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ProtectedMethod' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'E' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'E' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: @@ -131,27 +131,27 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/CA7C7935730B5EACD25F080E9C83FA087CCDC75E.bc | FileCheck %s --check-prefix CHECK-1 // CHECK-1: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'X' -// CHECK-1-NEXT: blob data = '{{.*}}' +// CHECK-1-NEXT: blob data = '{{.*}}' // CHECK-1-NEXT: // CHECK-1-NEXT: // RUN: llvm-bcanalyzer --dump %t/docs/bc/06B5F6A19BA9F6A832E127C9968282B94619B210.bc | FileCheck %s --check-prefix CHECK-2 // CHECK-2: -// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'C' -// CHECK-2-NEXT: blob data = '{{.*}}' -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: blob data = '{{.*}}' +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: @@ -162,62 +162,62 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/4202E8BF0ECB12AE354C8499C52725B0EE30AED5.bc | FileCheck %s --check-prefix CHECK-3 // CHECK-3: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'G' -// CHECK-3-NEXT: blob data = '{{.*}}' +// CHECK-3-NEXT: blob data = '{{.*}}' // CHECK-3-NEXT: // CHECK-3-NEXT: // RUN: llvm-bcanalyzer --dump %t/docs/bc/641AB4A3D36399954ACDE29C7A8833032BF40472.bc | FileCheck %s --check-prefix CHECK-4 // CHECK-4: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'Y' -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'X' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: blob data = '{{.*}}' +// CHECK-4-NEXT: blob data = '{{.*}}' // CHECK-4-NEXT: // CHECK-4-NEXT: // RUN: llvm-bcanalyzer --dump %t/docs/bc/0000000000000000000000000000000000000000.bc | FileCheck %s --check-prefix CHECK-5 // CHECK-5: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'H' -// CHECK-5-NEXT: blob data = '{{.*}}' -// CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: blob data = '{{.*}}' +// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'void' // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'B' -// CHECK-5-NEXT: blob data = '{{.*}}' +// CHECK-5-NEXT: blob data = '{{.*}}' // CHECK-5-NEXT: blob data = 'X' // CHECK-5-NEXT: blob data = 'Y' // CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'Bc' -// CHECK-5-NEXT: blob data = '{{.*}}' +// CHECK-5-NEXT: blob data = '{{.*}}' // CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'A' // CHECK-5-NEXT: blob data = 'B' @@ -226,33 +226,33 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/0921737541208B8FA9BB42B60F78AC1D779AA054.bc | FileCheck %s --check-prefix CHECK-6 // CHECK-6: -// CHECK-6-NEXT: +// CHECK-6-NEXT: // CHECK-6-NEXT: // CHECK-6-NEXT: -// CHECK-6-NEXT: +// CHECK-6-NEXT: // CHECK-6-NEXT: // CHECK-6-NEXT: blob data = 'D' -// CHECK-6-NEXT: blob data = '{{.*}}' +// CHECK-6-NEXT: blob data = '{{.*}}' // CHECK-6-NEXT: // CHECK-6-NEXT: // RUN: llvm-bcanalyzer --dump %t/docs/bc/E3B54702FABFF4037025BA194FC27C47006330B5.bc | FileCheck %s --check-prefix CHECK-7 // CHECK-7: -// CHECK-7-NEXT: +// CHECK-7-NEXT: // CHECK-7-NEXT: // CHECK-7-NEXT: -// CHECK-7-NEXT: +// CHECK-7-NEXT: // CHECK-7-NEXT: // CHECK-7-NEXT: blob data = 'F' -// CHECK-7-NEXT: blob data = '{{.*}}' +// CHECK-7-NEXT: blob data = '{{.*}}' // CHECK-7-NEXT: -// CHECK-7-NEXT: +// CHECK-7-NEXT: // CHECK-7-NEXT: // CHECK-7-NEXT: blob data = 'E' // CHECK-7-NEXT: // CHECK-7-NEXT: // CHECK-7-NEXT: -// CHECK-7-NEXT: +// CHECK-7-NEXT: // CHECK-7-NEXT: // CHECK-7-NEXT: blob data = 'D' // CHECK-7-NEXT: @@ -262,24 +262,24 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/ACE81AFA6627B4CEF2B456FB6E1252925674AF7E.bc | FileCheck %s --check-prefix CHECK-8 // CHECK-8: -// CHECK-8-NEXT: +// CHECK-8-NEXT: // CHECK-8-NEXT: // CHECK-8-NEXT: -// CHECK-8-NEXT: +// CHECK-8-NEXT: // CHECK-8-NEXT: // CHECK-8-NEXT: blob data = 'A' -// CHECK-8-NEXT: blob data = '{{.*}}' +// CHECK-8-NEXT: blob data = '{{.*}}' // CHECK-8-NEXT: -// CHECK-8-NEXT: -// CHECK-8-NEXT: +// CHECK-8-NEXT: +// CHECK-8-NEXT: // CHECK-8-NEXT: blob data = 'int' // CHECK-8-NEXT: // CHECK-8-NEXT: // CHECK-8-NEXT: blob data = 'X' // CHECK-8-NEXT: // CHECK-8-NEXT: -// CHECK-8-NEXT: -// CHECK-8-NEXT: +// CHECK-8-NEXT: +// CHECK-8-NEXT: // CHECK-8-NEXT: blob data = 'int' // CHECK-8-NEXT: // CHECK-8-NEXT: Index: test/clang-doc/mapper-comment.cpp =================================================================== --- test/clang-doc/mapper-comment.cpp +++ test/clang-doc/mapper-comment.cpp @@ -32,39 +32,39 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/0000000000000000000000000000000000000000.bc | FileCheck %s --check-prefix CHECK-0 // CHECK-0: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'F' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'FullComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ParagraphComment' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'TextComment' // CHECK-0-NEXT: blob data = ' Bonus comment on definition' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'int' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'I' // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'int' // CHECK-0-NEXT: // CHECK-0-NEXT: Index: test/clang-doc/mapper-linkage.cpp =================================================================== --- test/clang-doc/mapper-linkage.cpp +++ test/clang-doc/mapper-linkage.cpp @@ -99,23 +99,23 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/8960B5C9247D6F5C532756E53A1AD1240FA2146F.bc | FileCheck %s --check-prefix CHECK-0 // CHECK-0: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'namedInlineFunction' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'named' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: @@ -125,30 +125,30 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/7CDD73DCD6CD72F7E5CE25502810A182C66C4B45.bc | FileCheck %s --check-prefix CHECK-1 // CHECK-1: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'privateMethod' -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'Class' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: blob data = '{{.*}}' -// CHECK-1-NEXT: +// CHECK-1-NEXT: blob data = '{{.*}}' +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'Class' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'void' // CHECK-1-NEXT: // CHECK-1-NEXT: @@ -158,22 +158,22 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/0000000000000000000000000000000000000000.bc | FileCheck %s --check-prefix CHECK-2 // CHECK-2: -// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'staticFunctionWithInnerClass' -// CHECK-2-NEXT: blob data = '{{.*}}' -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: blob data = '{{.*}}' +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: @@ -184,36 +184,36 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/4712C5FA37B298A25501D1033C619B65B0ECC449.bc | FileCheck %s --check-prefix CHECK-3 // CHECK-3: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'namedPrivateMethod' -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'NamedClass' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'named' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: blob data = '{{.*}}' -// CHECK-3-NEXT: +// CHECK-3-NEXT: blob data = '{{.*}}' +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'NamedClass' // CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'void' // CHECK-3-NEXT: // CHECK-3-NEXT: @@ -223,35 +223,35 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/6E8FB72A89761E77020BFCEE9A9A6E64B15CC2A9.bc | FileCheck %s --check-prefix CHECK-4 // CHECK-4: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'anonPrivateMethod' -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'AnonClass' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: blob data = '{{.*}}' -// CHECK-4-NEXT: +// CHECK-4-NEXT: blob data = '{{.*}}' +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'AnonClass' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'void' // CHECK-4-NEXT: // CHECK-4-NEXT: @@ -261,22 +261,22 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/83CC52D32583E0771710A7742DE81C839E953AC8.bc | FileCheck %s --check-prefix CHECK-5 // CHECK-5: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'anonInlineFunction' -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: blob data = '{{.*}}' -// CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: blob data = '{{.*}}' +// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'void' // CHECK-5-NEXT: // CHECK-5-NEXT: Index: test/clang-doc/mapper-module.cpp =================================================================== --- test/clang-doc/mapper-module.cpp +++ test/clang-doc/mapper-module.cpp @@ -19,29 +19,29 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/0000000000000000000000000000000000000000.bc | FileCheck %s --check-prefix CHECK-0 // CHECK-0: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'exportedModuleFunction' -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'double' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'double' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'y' // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'int' // CHECK-0-NEXT: // CHECK-0-NEXT: Index: test/clang-doc/mapper-namespace.cpp =================================================================== --- test/clang-doc/mapper-namespace.cpp +++ test/clang-doc/mapper-namespace.cpp @@ -30,23 +30,23 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/8D042EFFC98B373450BC6B5B90A330C25A150E9C.bc | FileCheck %s --check-prefix CHECK-0 // CHECK-0: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'f' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'A' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: @@ -56,35 +56,35 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/E21AF79E2A9D02554BA090D10DF39FE273F5CDB5.bc | FileCheck %s --check-prefix CHECK-1 // CHECK-1: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'func' -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'B' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'A' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: blob data = '{{.*}}' -// CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: blob data = '{{.*}}' +// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'enum A::B::E' // CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'int' // CHECK-1-NEXT: // CHECK-1-NEXT: Index: test/clang-doc/mapper-record.cpp =================================================================== --- test/clang-doc/mapper-record.cpp +++ test/clang-doc/mapper-record.cpp @@ -46,30 +46,30 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/289584A8E0FF4178A794622A547AA622503967A1.bc | FileCheck %s --check-prefix CHECK-0 // CHECK-0: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'ProtectedMethod' -// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'E' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: blob data = '{{.*}}' -// CHECK-0-NEXT: +// CHECK-0-NEXT: blob data = '{{.*}}' +// CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'E' // CHECK-0-NEXT: // CHECK-0-NEXT: // CHECK-0-NEXT: -// CHECK-0-NEXT: -// CHECK-0-NEXT: +// CHECK-0-NEXT: +// CHECK-0-NEXT: // CHECK-0-NEXT: blob data = 'void' // CHECK-0-NEXT: // CHECK-0-NEXT: @@ -79,27 +79,27 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/CA7C7935730B5EACD25F080E9C83FA087CCDC75E.bc | FileCheck %s --check-prefix CHECK-1 // CHECK-1: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: -// CHECK-1-NEXT: +// CHECK-1-NEXT: // CHECK-1-NEXT: // CHECK-1-NEXT: blob data = 'X' -// CHECK-1-NEXT: blob data = '{{.*}}' +// CHECK-1-NEXT: blob data = '{{.*}}' // CHECK-1-NEXT: // CHECK-1-NEXT: // RUN: llvm-bcanalyzer --dump %t/docs/bc/06B5F6A19BA9F6A832E127C9968282B94619B210.bc | FileCheck %s --check-prefix CHECK-2 // CHECK-2: -// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'C' -// CHECK-2-NEXT: blob data = '{{.*}}' -// CHECK-2-NEXT: -// CHECK-2-NEXT: +// CHECK-2-NEXT: blob data = '{{.*}}' +// CHECK-2-NEXT: +// CHECK-2-NEXT: // CHECK-2-NEXT: blob data = 'int' // CHECK-2-NEXT: // CHECK-2-NEXT: @@ -109,44 +109,44 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/4202E8BF0ECB12AE354C8499C52725B0EE30AED5.bc | FileCheck %s --check-prefix CHECK-3 // CHECK-3: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: -// CHECK-3-NEXT: +// CHECK-3-NEXT: // CHECK-3-NEXT: // CHECK-3-NEXT: blob data = 'G' -// CHECK-3-NEXT: blob data = '{{.*}}' +// CHECK-3-NEXT: blob data = '{{.*}}' // CHECK-3-NEXT: // CHECK-3-NEXT: // RUN: llvm-bcanalyzer --dump %t/docs/bc/641AB4A3D36399954ACDE29C7A8833032BF40472.bc | FileCheck %s --check-prefix CHECK-4 // CHECK-4: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'Y' -// CHECK-4-NEXT: +// CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: blob data = 'X' // CHECK-4-NEXT: // CHECK-4-NEXT: // CHECK-4-NEXT: -// CHECK-4-NEXT: blob data = '{{.*}}' +// CHECK-4-NEXT: blob data = '{{.*}}' // CHECK-4-NEXT: // CHECK-4-NEXT: // RUN: llvm-bcanalyzer --dump %t/docs/bc/0000000000000000000000000000000000000000.bc | FileCheck %s --check-prefix CHECK-5 // CHECK-5: -// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: -// CHECK-5-NEXT: -// CHECK-5-NEXT: +// CHECK-5-NEXT: +// CHECK-5-NEXT: // CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'Bc' -// CHECK-5-NEXT: blob data = '{{.*}}' +// CHECK-5-NEXT: blob data = '{{.*}}' // CHECK-5-NEXT: // CHECK-5-NEXT: blob data = 'A' // CHECK-5-NEXT: blob data = 'B' @@ -155,33 +155,33 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/0921737541208B8FA9BB42B60F78AC1D779AA054.bc | FileCheck %s --check-prefix CHECK-6 // CHECK-6: -// CHECK-6-NEXT: +// CHECK-6-NEXT: // CHECK-6-NEXT: // CHECK-6-NEXT: -// CHECK-6-NEXT: +// CHECK-6-NEXT: // CHECK-6-NEXT: // CHECK-6-NEXT: blob data = 'D' -// CHECK-6-NEXT: blob data = '{{.*}}' +// CHECK-6-NEXT: blob data = '{{.*}}' // CHECK-6-NEXT: // CHECK-6-NEXT: // RUN: llvm-bcanalyzer --dump %t/docs/bc/E3B54702FABFF4037025BA194FC27C47006330B5.bc | FileCheck %s --check-prefix CHECK-7 // CHECK-7: -// CHECK-7-NEXT: +// CHECK-7-NEXT: // CHECK-7-NEXT: // CHECK-7-NEXT: -// CHECK-7-NEXT: +// CHECK-7-NEXT: // CHECK-7-NEXT: // CHECK-7-NEXT: blob data = 'F' -// CHECK-7-NEXT: blob data = '{{.*}}' +// CHECK-7-NEXT: blob data = '{{.*}}' // CHECK-7-NEXT: -// CHECK-7-NEXT: +// CHECK-7-NEXT: // CHECK-7-NEXT: // CHECK-7-NEXT: blob data = 'E' // CHECK-7-NEXT: // CHECK-7-NEXT: // CHECK-7-NEXT: -// CHECK-7-NEXT: +// CHECK-7-NEXT: // CHECK-7-NEXT: // CHECK-7-NEXT: blob data = 'D' // CHECK-7-NEXT: @@ -191,23 +191,23 @@ // RUN: llvm-bcanalyzer --dump %t/docs/bc/ACE81AFA6627B4CEF2B456FB6E1252925674AF7E.bc | FileCheck %s --check-prefix CHECK-8 // CHECK-8: -// CHECK-8-NEXT: +// CHECK-8-NEXT: // CHECK-8-NEXT: // CHECK-8-NEXT: -// CHECK-8-NEXT: +// CHECK-8-NEXT: // CHECK-8-NEXT: // CHECK-8-NEXT: blob data = 'A' -// CHECK-8-NEXT: blob data = '{{.*}}' +// CHECK-8-NEXT: blob data = '{{.*}}' // CHECK-8-NEXT: -// CHECK-8-NEXT: -// CHECK-8-NEXT: +// CHECK-8-NEXT: +// CHECK-8-NEXT: // CHECK-8-NEXT: blob data = 'int' // CHECK-8-NEXT: // CHECK-8-NEXT: // CHECK-8-NEXT: blob data = 'X' // CHECK-8-NEXT: -// CHECK-8-NEXT: -// CHECK-8-NEXT: +// CHECK-8-NEXT: +// CHECK-8-NEXT: // CHECK-8-NEXT: blob data = 'int' // CHECK-8-NEXT: // CHECK-8-NEXT: Index: test/clang-doc/md-comment.cpp =================================================================== --- test/clang-doc/md-comment.cpp +++ test/clang-doc/md-comment.cpp @@ -35,7 +35,7 @@ // CHECK-0: ## Functions // CHECK-0: ### F // CHECK-0: *void F(int I, int J)* -// CHECK-0: *Defined at line 28 of test* +// CHECK-0: *Defined at line 28 of {{.*}}* // CHECK-0: **brief** Brief description. // CHECK-0: Extended description that continues onto the next line. // CHECK-0:
    Index: test/clang-doc/md-linkage.cpp =================================================================== --- test/clang-doc/md-linkage.cpp +++ test/clang-doc/md-linkage.cpp @@ -99,7 +99,7 @@ // RUN: cat %t/docs/./Class.md | FileCheck %s --check-prefix CHECK-0 // CHECK-0: # class Class -// CHECK-0: *Defined at line 32 of test* +// CHECK-0: *Defined at line 32 of {{.*}}* // CHECK-0: ## Members // CHECK-0: int publicField // CHECK-0: protected int protectedField @@ -126,14 +126,14 @@ // CHECK-2: *int inlinedFunction(int x)* // CHECK-2: ### functionWithInnerClass // CHECK-2: *int functionWithInnerClass(int x)* -// CHECK-2: *Defined at line 14 of test* +// CHECK-2: *Defined at line 14 of {{.*}}* // CHECK-2: ### inlinedFunctionWithInnerClass // CHECK-2: *int inlinedFunctionWithInnerClass(int x)* -// CHECK-2: *Defined at line 23 of test* +// CHECK-2: *Defined at line 23 of {{.*}}* // RUN: cat %t/docs/named/NamedClass.md | FileCheck %s --check-prefix CHECK-3 // CHECK-3: # class NamedClass -// CHECK-3: *Defined at line 47 of test* +// CHECK-3: *Defined at line 47 of {{.*}}* // CHECK-3: ## Members // CHECK-3: int namedPublicField // CHECK-3: protected int namedProtectedField Index: test/clang-doc/md-namespace.cpp =================================================================== --- test/clang-doc/md-namespace.cpp +++ test/clang-doc/md-namespace.cpp @@ -33,16 +33,16 @@ // CHECK-0: ## Functions // CHECK-0: ### f // CHECK-0: *void f()* -// CHECK-0: *Defined at line 17 of test* +// CHECK-0: *Defined at line 17 of {{.*}}* // RUN: cat %t/docs/A/B.md | FileCheck %s --check-prefix CHECK-1 // CHECK-1: # namespace B // CHECK-1: ## Functions // CHECK-1: ### func // CHECK-1: *enum A::B::E func(int i)* -// CHECK-1: *Defined at line 23 of test* +// CHECK-1: *Defined at line 23 of {{.*}}* // CHECK-1: ## Enums // CHECK-1: | enum E | // CHECK-1: -- // CHECK-1: | X | -// CHECK-1: *Defined at line 21 of test* +// CHECK-1: *Defined at line 21 of {{.*}}* Index: test/clang-doc/md-record.cpp =================================================================== --- test/clang-doc/md-record.cpp +++ test/clang-doc/md-record.cpp @@ -46,58 +46,58 @@ // RUN: cat %t/docs/./F.md | FileCheck %s --check-prefix CHECK-0 // CHECK-0: # class F -// CHECK-0: *Defined at line 36 of test* +// CHECK-0: *Defined at line 36 of {{.*}}* // CHECK-0: Inherits from E, D // RUN: cat %t/docs/./D.md | FileCheck %s --check-prefix CHECK-1 // CHECK-1: # class D -// CHECK-1: *Defined at line 23 of test* +// CHECK-1: *Defined at line 23 of {{.*}}* // RUN: cat %t/docs/./GlobalNamespace.md | FileCheck %s --check-prefix CHECK-2 // CHECK-2: # Global Namespace // CHECK-2: ## Functions // CHECK-2: ### H // CHECK-2: *void H()* -// CHECK-2: *Defined at line 11 of test* +// CHECK-2: *Defined at line 11 of {{.*}}* // CHECK-2: ## Enums // CHECK-2: | enum B | // CHECK-2: -- // CHECK-2: | X | // CHECK-2: | Y | -// CHECK-2: *Defined at line 17 of test* +// CHECK-2: *Defined at line 17 of {{.*}}* // CHECK-2: | enum class Bc | // CHECK-2: -- // CHECK-2: | A | // CHECK-2: | B | -// CHECK-2: *Defined at line 19 of test* +// CHECK-2: *Defined at line 19 of {{.*}}* // RUN: cat %t/docs/./E.md | FileCheck %s --check-prefix CHECK-3 // CHECK-3: # class E -// CHECK-3: *Defined at line 25 of test* +// CHECK-3: *Defined at line 25 of {{.*}}* // CHECK-3: ## Functions // CHECK-3: ### E // CHECK-3: *void E()* -// CHECK-3: *Defined at line 27 of test* +// CHECK-3: *Defined at line 27 of {{.*}}* // CHECK-3: ### ~E // CHECK-3: *void ~E()* -// CHECK-3: *Defined at line 28 of test* +// CHECK-3: *Defined at line 28 of {{.*}}* // CHECK-3: ### ProtectedMethod // CHECK-3: *void ProtectedMethod()* -// CHECK-3: *Defined at line 34 of test* +// CHECK-3: *Defined at line 34 of {{.*}}* // RUN: cat %t/docs/./C.md | FileCheck %s --check-prefix CHECK-4 // CHECK-4: # struct C -// CHECK-4: *Defined at line 21 of test* +// CHECK-4: *Defined at line 21 of {{.*}}* // CHECK-4: ## Members // CHECK-4: int i // RUN: cat %t/docs/./X.md | FileCheck %s --check-prefix CHECK-5 // CHECK-5: # class X -// CHECK-5: *Defined at line 38 of test* +// CHECK-5: *Defined at line 38 of {{.*}}* // RUN: cat %t/docs/./A.md | FileCheck %s --check-prefix CHECK-6 // CHECK-6: # union A -// CHECK-6: *Defined at line 15 of test* +// CHECK-6: *Defined at line 15 of {{.*}}* // CHECK-6: ## Members // CHECK-6: int X // CHECK-6: int Y Index: test/clang-doc/public-comment.cpp =================================================================== --- test/clang-doc/public-comment.cpp +++ test/clang-doc/public-comment.cpp @@ -121,10 +121,10 @@ // CHECK-0-NEXT: Text: ' Bonus comment on definition' // CHECK-0-NEXT: DefLocation: // CHECK-0-NEXT: LineNumber: 28 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 25 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Params: // CHECK-0-NEXT: - Type: // CHECK-0-NEXT: Name: 'int' Index: test/clang-doc/public-linkage.cpp =================================================================== --- test/clang-doc/public-linkage.cpp +++ test/clang-doc/public-linkage.cpp @@ -103,7 +103,7 @@ // CHECK-0-NEXT: Name: 'Class' // CHECK-0-NEXT: DefLocation: // CHECK-0-NEXT: LineNumber: 32 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: TagType: Class // CHECK-0-NEXT: Members: // CHECK-0-NEXT: - Type: @@ -122,7 +122,7 @@ // CHECK-0-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 34 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: IsMethod: true // CHECK-0-NEXT: Parent: // CHECK-0-NEXT: Type: Record @@ -139,7 +139,7 @@ // CHECK-0-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 38 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: IsMethod: true // CHECK-0-NEXT: Parent: // CHECK-0-NEXT: Type: Record @@ -163,7 +163,7 @@ // CHECK-1-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-1-NEXT: Location: // CHECK-1-NEXT: - LineNumber: 61 -// CHECK-1-NEXT: Filename: 'test' +// CHECK-1-NEXT: Filename: '{{.*}}' // CHECK-1-NEXT: ReturnType: // CHECK-1-NEXT: Type: // CHECK-1-NEXT: Name: 'void' @@ -175,7 +175,7 @@ // CHECK-1-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-1-NEXT: Location: // CHECK-1-NEXT: - LineNumber: 63 -// CHECK-1-NEXT: Filename: 'test' +// CHECK-1-NEXT: Filename: '{{.*}}' // CHECK-1-NEXT: ReturnType: // CHECK-1-NEXT: Type: // CHECK-1-NEXT: Name: 'void' @@ -189,7 +189,7 @@ // CHECK-2-NEXT: Name: 'function' // CHECK-2-NEXT: Location: // CHECK-2-NEXT: - LineNumber: 10 -// CHECK-2-NEXT: Filename: 'test' +// CHECK-2-NEXT: Filename: '{{.*}}' // CHECK-2-NEXT: Params: // CHECK-2-NEXT: - Type: // CHECK-2-NEXT: Name: 'int' @@ -201,7 +201,7 @@ // CHECK-2-NEXT: Name: 'inlinedFunction' // CHECK-2-NEXT: Location: // CHECK-2-NEXT: - LineNumber: 12 -// CHECK-2-NEXT: Filename: 'test' +// CHECK-2-NEXT: Filename: '{{.*}}' // CHECK-2-NEXT: Params: // CHECK-2-NEXT: - Type: // CHECK-2-NEXT: Name: 'int' @@ -213,7 +213,7 @@ // CHECK-2-NEXT: Name: 'functionWithInnerClass' // CHECK-2-NEXT: DefLocation: // CHECK-2-NEXT: LineNumber: 14 -// CHECK-2-NEXT: Filename: 'test' +// CHECK-2-NEXT: Filename: '{{.*}}' // CHECK-2-NEXT: Params: // CHECK-2-NEXT: - Type: // CHECK-2-NEXT: Name: 'int' @@ -225,7 +225,7 @@ // CHECK-2-NEXT: Name: 'inlinedFunctionWithInnerClass' // CHECK-2-NEXT: DefLocation: // CHECK-2-NEXT: LineNumber: 23 -// CHECK-2-NEXT: Filename: 'test' +// CHECK-2-NEXT: Filename: '{{.*}}' // CHECK-2-NEXT: Params: // CHECK-2-NEXT: - Type: // CHECK-2-NEXT: Name: 'int' @@ -245,7 +245,7 @@ // CHECK-3-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-3-NEXT: DefLocation: // CHECK-3-NEXT: LineNumber: 47 -// CHECK-3-NEXT: Filename: 'test' +// CHECK-3-NEXT: Filename: '{{.*}}' // CHECK-3-NEXT: TagType: Class // CHECK-3-NEXT: Members: // CHECK-3-NEXT: - Type: @@ -267,7 +267,7 @@ // CHECK-3-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-3-NEXT: Location: // CHECK-3-NEXT: - LineNumber: 49 -// CHECK-3-NEXT: Filename: 'test' +// CHECK-3-NEXT: Filename: '{{.*}}' // CHECK-3-NEXT: IsMethod: true // CHECK-3-NEXT: Parent: // CHECK-3-NEXT: Type: Record @@ -287,7 +287,7 @@ // CHECK-3-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-3-NEXT: Location: // CHECK-3-NEXT: - LineNumber: 53 -// CHECK-3-NEXT: Filename: 'test' +// CHECK-3-NEXT: Filename: '{{.*}}' // CHECK-3-NEXT: IsMethod: true // CHECK-3-NEXT: Parent: // CHECK-3-NEXT: Type: Record Index: test/clang-doc/public-module.cpp =================================================================== --- test/clang-doc/public-module.cpp +++ test/clang-doc/public-module.cpp @@ -25,7 +25,7 @@ // CHECK-0-NEXT: Name: 'moduleFunction' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 11 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Params: // CHECK-0-NEXT: - Type: // CHECK-0-NEXT: Name: 'int' @@ -37,7 +37,7 @@ // CHECK-0-NEXT: Name: 'exportedModuleFunction' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 15 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Params: // CHECK-0-NEXT: - Type: // CHECK-0-NEXT: Name: 'double' Index: test/clang-doc/public-namespace.cpp =================================================================== --- test/clang-doc/public-namespace.cpp +++ test/clang-doc/public-namespace.cpp @@ -41,10 +41,10 @@ // CHECK-0-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-0-NEXT: DefLocation: // CHECK-0-NEXT: LineNumber: 17 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 11 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: ReturnType: // CHECK-0-NEXT: Type: // CHECK-0-NEXT: Name: 'void' @@ -70,7 +70,7 @@ // CHECK-1-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-1-NEXT: DefLocation: // CHECK-1-NEXT: LineNumber: 23 -// CHECK-1-NEXT: Filename: 'test' +// CHECK-1-NEXT: Filename: '{{.*}}' // CHECK-1-NEXT: Params: // CHECK-1-NEXT: - Type: // CHECK-1-NEXT: Name: 'int' @@ -90,7 +90,7 @@ // CHECK-1-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-1-NEXT: DefLocation: // CHECK-1-NEXT: LineNumber: 21 -// CHECK-1-NEXT: Filename: 'test' +// CHECK-1-NEXT: Filename: '{{.*}}' // CHECK-1-NEXT: Members: // CHECK-1-NEXT: - 'X' // CHECK-1-NEXT: ... Index: test/clang-doc/public-record.cpp =================================================================== --- test/clang-doc/public-record.cpp +++ test/clang-doc/public-record.cpp @@ -50,7 +50,7 @@ // CHECK-0-NEXT: Name: 'C' // CHECK-0-NEXT: DefLocation: // CHECK-0-NEXT: LineNumber: 21 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Members: // CHECK-0-NEXT: - Type: // CHECK-0-NEXT: Name: 'int' @@ -63,7 +63,7 @@ // CHECK-1-NEXT: Name: 'A' // CHECK-1-NEXT: DefLocation: // CHECK-1-NEXT: LineNumber: 15 -// CHECK-1-NEXT: Filename: 'test' +// CHECK-1-NEXT: Filename: '{{.*}}' // CHECK-1-NEXT: TagType: Union // CHECK-1-NEXT: Members: // CHECK-1-NEXT: - Type: @@ -80,7 +80,7 @@ // CHECK-2-NEXT: Name: 'F' // CHECK-2-NEXT: DefLocation: // CHECK-2-NEXT: LineNumber: 36 -// CHECK-2-NEXT: Filename: 'test' +// CHECK-2-NEXT: Filename: '{{.*}}' // CHECK-2-NEXT: TagType: Class // CHECK-2-NEXT: Parents: // CHECK-2-NEXT: - Type: Record @@ -98,7 +98,7 @@ // CHECK-3-NEXT: Name: 'G' // CHECK-3-NEXT: Location: // CHECK-3-NEXT: - LineNumber: 42 -// CHECK-3-NEXT: Filename: 'test' +// CHECK-3-NEXT: Filename: '{{.*}}' // CHECK-3-NEXT: TagType: Class // CHECK-3-NEXT: ... @@ -108,7 +108,7 @@ // CHECK-4-NEXT: Name: 'E' // CHECK-4-NEXT: DefLocation: // CHECK-4-NEXT: LineNumber: 25 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: TagType: Class // CHECK-4-NEXT: ChildFunctions: // CHECK-4-NEXT: - USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' @@ -119,7 +119,7 @@ // CHECK-4-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-4-NEXT: DefLocation: // CHECK-4-NEXT: LineNumber: 27 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: IsMethod: true // CHECK-4-NEXT: Parent: // CHECK-4-NEXT: Type: Record @@ -136,7 +136,7 @@ // CHECK-4-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-4-NEXT: DefLocation: // CHECK-4-NEXT: LineNumber: 28 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: IsMethod: true // CHECK-4-NEXT: Parent: // CHECK-4-NEXT: Type: Record @@ -153,10 +153,10 @@ // CHECK-4-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-4-NEXT: DefLocation: // CHECK-4-NEXT: LineNumber: 34 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: Location: // CHECK-4-NEXT: - LineNumber: 31 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: IsMethod: true // CHECK-4-NEXT: Parent: // CHECK-4-NEXT: Type: Record @@ -173,7 +173,7 @@ // CHECK-5-NEXT: Name: 'D' // CHECK-5-NEXT: DefLocation: // CHECK-5-NEXT: LineNumber: 23 -// CHECK-5-NEXT: Filename: 'test' +// CHECK-5-NEXT: Filename: '{{.*}}' // CHECK-5-NEXT: TagType: Class // CHECK-5-NEXT: ... @@ -183,7 +183,7 @@ // CHECK-6-NEXT: Name: 'X' // CHECK-6-NEXT: DefLocation: // CHECK-6-NEXT: LineNumber: 38 -// CHECK-6-NEXT: Filename: 'test' +// CHECK-6-NEXT: Filename: '{{.*}}' // CHECK-6-NEXT: TagType: Class // CHECK-6-NEXT: ... @@ -195,7 +195,7 @@ // CHECK-7-NEXT: Name: 'H' // CHECK-7-NEXT: DefLocation: // CHECK-7-NEXT: LineNumber: 11 -// CHECK-7-NEXT: Filename: 'test' +// CHECK-7-NEXT: Filename: '{{.*}}' // CHECK-7-NEXT: ReturnType: // CHECK-7-NEXT: Type: // CHECK-7-NEXT: Name: 'void' @@ -204,7 +204,7 @@ // CHECK-7-NEXT: Name: 'B' // CHECK-7-NEXT: DefLocation: // CHECK-7-NEXT: LineNumber: 17 -// CHECK-7-NEXT: Filename: 'test' +// CHECK-7-NEXT: Filename: '{{.*}}' // CHECK-7-NEXT: Members: // CHECK-7-NEXT: - 'X' // CHECK-7-NEXT: - 'Y' @@ -212,7 +212,7 @@ // CHECK-7-NEXT: Name: 'Bc' // CHECK-7-NEXT: DefLocation: // CHECK-7-NEXT: LineNumber: 19 -// CHECK-7-NEXT: Filename: 'test' +// CHECK-7-NEXT: Filename: '{{.*}}' // CHECK-7-NEXT: Scoped: true // CHECK-7-NEXT: Members: // CHECK-7-NEXT: - 'A' Index: test/clang-doc/yaml-comment.cpp =================================================================== --- test/clang-doc/yaml-comment.cpp +++ test/clang-doc/yaml-comment.cpp @@ -121,10 +121,10 @@ // CHECK-0-NEXT: Text: ' Bonus comment on definition' // CHECK-0-NEXT: DefLocation: // CHECK-0-NEXT: LineNumber: 28 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 25 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Params: // CHECK-0-NEXT: - Type: // CHECK-0-NEXT: Name: 'int' Index: test/clang-doc/yaml-linkage.cpp =================================================================== --- test/clang-doc/yaml-linkage.cpp +++ test/clang-doc/yaml-linkage.cpp @@ -103,7 +103,7 @@ // CHECK-0-NEXT: Name: 'Class' // CHECK-0-NEXT: DefLocation: // CHECK-0-NEXT: LineNumber: 32 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: TagType: Class // CHECK-0-NEXT: Members: // CHECK-0-NEXT: - Type: @@ -126,7 +126,7 @@ // CHECK-0-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 34 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: IsMethod: true // CHECK-0-NEXT: Parent: // CHECK-0-NEXT: Type: Record @@ -143,7 +143,7 @@ // CHECK-0-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 38 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: IsMethod: true // CHECK-0-NEXT: Parent: // CHECK-0-NEXT: Type: Record @@ -160,7 +160,7 @@ // CHECK-0-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 42 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: IsMethod: true // CHECK-0-NEXT: Parent: // CHECK-0-NEXT: Type: Record @@ -184,7 +184,7 @@ // CHECK-1-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-1-NEXT: Location: // CHECK-1-NEXT: - LineNumber: 61 -// CHECK-1-NEXT: Filename: 'test' +// CHECK-1-NEXT: Filename: '{{.*}}' // CHECK-1-NEXT: ReturnType: // CHECK-1-NEXT: Type: // CHECK-1-NEXT: Name: 'void' @@ -196,7 +196,7 @@ // CHECK-1-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-1-NEXT: Location: // CHECK-1-NEXT: - LineNumber: 62 -// CHECK-1-NEXT: Filename: 'test' +// CHECK-1-NEXT: Filename: '{{.*}}' // CHECK-1-NEXT: ReturnType: // CHECK-1-NEXT: Type: // CHECK-1-NEXT: Name: 'void' @@ -208,7 +208,7 @@ // CHECK-1-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-1-NEXT: Location: // CHECK-1-NEXT: - LineNumber: 63 -// CHECK-1-NEXT: Filename: 'test' +// CHECK-1-NEXT: Filename: '{{.*}}' // CHECK-1-NEXT: ReturnType: // CHECK-1-NEXT: Type: // CHECK-1-NEXT: Name: 'void' @@ -223,7 +223,7 @@ // CHECK-2-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-2-NEXT: DefLocation: // CHECK-2-NEXT: LineNumber: 78 -// CHECK-2-NEXT: Filename: 'test' +// CHECK-2-NEXT: Filename: '{{.*}}' // CHECK-2-NEXT: TagType: Class // CHECK-2-NEXT: Members: // CHECK-2-NEXT: - Type: @@ -248,7 +248,7 @@ // CHECK-2-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-2-NEXT: Location: // CHECK-2-NEXT: - LineNumber: 80 -// CHECK-2-NEXT: Filename: 'test' +// CHECK-2-NEXT: Filename: '{{.*}}' // CHECK-2-NEXT: IsMethod: true // CHECK-2-NEXT: Parent: // CHECK-2-NEXT: Type: Record @@ -267,7 +267,7 @@ // CHECK-2-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-2-NEXT: Location: // CHECK-2-NEXT: - LineNumber: 84 -// CHECK-2-NEXT: Filename: 'test' +// CHECK-2-NEXT: Filename: '{{.*}}' // CHECK-2-NEXT: IsMethod: true // CHECK-2-NEXT: Parent: // CHECK-2-NEXT: Type: Record @@ -286,7 +286,7 @@ // CHECK-2-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-2-NEXT: Location: // CHECK-2-NEXT: - LineNumber: 88 -// CHECK-2-NEXT: Filename: 'test' +// CHECK-2-NEXT: Filename: '{{.*}}' // CHECK-2-NEXT: IsMethod: true // CHECK-2-NEXT: Parent: // CHECK-2-NEXT: Type: Record @@ -308,7 +308,7 @@ // CHECK-3-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-3-NEXT: Location: // CHECK-3-NEXT: - LineNumber: 92 -// CHECK-3-NEXT: Filename: 'test' +// CHECK-3-NEXT: Filename: '{{.*}}' // CHECK-3-NEXT: ReturnType: // CHECK-3-NEXT: Type: // CHECK-3-NEXT: Name: 'void' @@ -319,7 +319,7 @@ // CHECK-3-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-3-NEXT: Location: // CHECK-3-NEXT: - LineNumber: 93 -// CHECK-3-NEXT: Filename: 'test' +// CHECK-3-NEXT: Filename: '{{.*}}' // CHECK-3-NEXT: ReturnType: // CHECK-3-NEXT: Type: // CHECK-3-NEXT: Name: 'void' @@ -330,7 +330,7 @@ // CHECK-3-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-3-NEXT: Location: // CHECK-3-NEXT: - LineNumber: 94 -// CHECK-3-NEXT: Filename: 'test' +// CHECK-3-NEXT: Filename: '{{.*}}' // CHECK-3-NEXT: ReturnType: // CHECK-3-NEXT: Type: // CHECK-3-NEXT: Name: 'void' @@ -346,7 +346,7 @@ // CHECK-4-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-4-NEXT: DefLocation: // CHECK-4-NEXT: LineNumber: 47 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: TagType: Class // CHECK-4-NEXT: Members: // CHECK-4-NEXT: - Type: @@ -372,7 +372,7 @@ // CHECK-4-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-4-NEXT: Location: // CHECK-4-NEXT: - LineNumber: 49 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: IsMethod: true // CHECK-4-NEXT: Parent: // CHECK-4-NEXT: Type: Record @@ -392,7 +392,7 @@ // CHECK-4-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-4-NEXT: Location: // CHECK-4-NEXT: - LineNumber: 53 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: IsMethod: true // CHECK-4-NEXT: Parent: // CHECK-4-NEXT: Type: Record @@ -412,7 +412,7 @@ // CHECK-4-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-4-NEXT: Location: // CHECK-4-NEXT: - LineNumber: 57 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: IsMethod: true // CHECK-4-NEXT: Parent: // CHECK-4-NEXT: Type: Record Index: test/clang-doc/yaml-module.cpp =================================================================== --- test/clang-doc/yaml-module.cpp +++ test/clang-doc/yaml-module.cpp @@ -25,7 +25,7 @@ // CHECK-0-NEXT: Name: 'moduleFunction' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 11 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Params: // CHECK-0-NEXT: - Type: // CHECK-0-NEXT: Name: 'int' @@ -37,7 +37,7 @@ // CHECK-0-NEXT: Name: 'staticModuleFunction' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 13 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Params: // CHECK-0-NEXT: - Type: // CHECK-0-NEXT: Name: 'int' @@ -49,7 +49,7 @@ // CHECK-0-NEXT: Name: 'exportedModuleFunction' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 15 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Params: // CHECK-0-NEXT: - Type: // CHECK-0-NEXT: Name: 'double' Index: test/clang-doc/yaml-namespace.cpp =================================================================== --- test/clang-doc/yaml-namespace.cpp +++ test/clang-doc/yaml-namespace.cpp @@ -41,10 +41,10 @@ // CHECK-0-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-0-NEXT: DefLocation: // CHECK-0-NEXT: LineNumber: 17 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Location: // CHECK-0-NEXT: - LineNumber: 11 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: ReturnType: // CHECK-0-NEXT: Type: // CHECK-0-NEXT: Name: 'void' @@ -70,7 +70,7 @@ // CHECK-1-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-1-NEXT: DefLocation: // CHECK-1-NEXT: LineNumber: 23 -// CHECK-1-NEXT: Filename: 'test' +// CHECK-1-NEXT: Filename: '{{.*}}' // CHECK-1-NEXT: Params: // CHECK-1-NEXT: - Type: // CHECK-1-NEXT: Name: 'int' @@ -90,7 +90,7 @@ // CHECK-1-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-1-NEXT: DefLocation: // CHECK-1-NEXT: LineNumber: 21 -// CHECK-1-NEXT: Filename: 'test' +// CHECK-1-NEXT: Filename: '{{.*}}' // CHECK-1-NEXT: Members: // CHECK-1-NEXT: - 'X' // CHECK-1-NEXT: ... Index: test/clang-doc/yaml-record.cpp =================================================================== --- test/clang-doc/yaml-record.cpp +++ test/clang-doc/yaml-record.cpp @@ -50,7 +50,7 @@ // CHECK-0-NEXT: Name: 'C' // CHECK-0-NEXT: DefLocation: // CHECK-0-NEXT: LineNumber: 21 -// CHECK-0-NEXT: Filename: 'test' +// CHECK-0-NEXT: Filename: '{{.*}}' // CHECK-0-NEXT: Members: // CHECK-0-NEXT: - Type: // CHECK-0-NEXT: Name: 'int' @@ -63,7 +63,7 @@ // CHECK-1-NEXT: Name: 'A' // CHECK-1-NEXT: DefLocation: // CHECK-1-NEXT: LineNumber: 15 -// CHECK-1-NEXT: Filename: 'test' +// CHECK-1-NEXT: Filename: '{{.*}}' // CHECK-1-NEXT: TagType: Union // CHECK-1-NEXT: Members: // CHECK-1-NEXT: - Type: @@ -80,7 +80,7 @@ // CHECK-2-NEXT: Name: 'F' // CHECK-2-NEXT: DefLocation: // CHECK-2-NEXT: LineNumber: 36 -// CHECK-2-NEXT: Filename: 'test' +// CHECK-2-NEXT: Filename: '{{.*}}' // CHECK-2-NEXT: TagType: Class // CHECK-2-NEXT: Parents: // CHECK-2-NEXT: - Type: Record @@ -98,7 +98,7 @@ // CHECK-3-NEXT: Name: 'G' // CHECK-3-NEXT: Location: // CHECK-3-NEXT: - LineNumber: 42 -// CHECK-3-NEXT: Filename: 'test' +// CHECK-3-NEXT: Filename: '{{.*}}' // CHECK-3-NEXT: TagType: Class // CHECK-3-NEXT: ... @@ -108,7 +108,7 @@ // CHECK-4-NEXT: Name: 'E' // CHECK-4-NEXT: DefLocation: // CHECK-4-NEXT: LineNumber: 25 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: TagType: Class // CHECK-4-NEXT: ChildFunctions: // CHECK-4-NEXT: - USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' @@ -119,7 +119,7 @@ // CHECK-4-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-4-NEXT: DefLocation: // CHECK-4-NEXT: LineNumber: 27 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: IsMethod: true // CHECK-4-NEXT: Parent: // CHECK-4-NEXT: Type: Record @@ -136,7 +136,7 @@ // CHECK-4-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-4-NEXT: DefLocation: // CHECK-4-NEXT: LineNumber: 28 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: IsMethod: true // CHECK-4-NEXT: Parent: // CHECK-4-NEXT: Type: Record @@ -153,10 +153,10 @@ // CHECK-4-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-4-NEXT: DefLocation: // CHECK-4-NEXT: LineNumber: 34 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: Location: // CHECK-4-NEXT: - LineNumber: 31 -// CHECK-4-NEXT: Filename: 'test' +// CHECK-4-NEXT: Filename: '{{.*}}' // CHECK-4-NEXT: IsMethod: true // CHECK-4-NEXT: Parent: // CHECK-4-NEXT: Type: Record @@ -173,7 +173,7 @@ // CHECK-5-NEXT: Name: 'D' // CHECK-5-NEXT: DefLocation: // CHECK-5-NEXT: LineNumber: 23 -// CHECK-5-NEXT: Filename: 'test' +// CHECK-5-NEXT: Filename: '{{.*}}' // CHECK-5-NEXT: TagType: Class // CHECK-5-NEXT: ... @@ -183,7 +183,7 @@ // CHECK-6-NEXT: Name: 'X' // CHECK-6-NEXT: DefLocation: // CHECK-6-NEXT: LineNumber: 38 -// CHECK-6-NEXT: Filename: 'test' +// CHECK-6-NEXT: Filename: '{{.*}}' // CHECK-6-NEXT: TagType: Class // CHECK-6-NEXT: ... @@ -195,7 +195,7 @@ // CHECK-7-NEXT: Name: 'H' // CHECK-7-NEXT: DefLocation: // CHECK-7-NEXT: LineNumber: 11 -// CHECK-7-NEXT: Filename: 'test' +// CHECK-7-NEXT: Filename: '{{.*}}' // CHECK-7-NEXT: ReturnType: // CHECK-7-NEXT: Type: // CHECK-7-NEXT: Name: 'void' @@ -204,7 +204,7 @@ // CHECK-7-NEXT: Name: 'B' // CHECK-7-NEXT: DefLocation: // CHECK-7-NEXT: LineNumber: 17 -// CHECK-7-NEXT: Filename: 'test' +// CHECK-7-NEXT: Filename: '{{.*}}' // CHECK-7-NEXT: Members: // CHECK-7-NEXT: - 'X' // CHECK-7-NEXT: - 'Y' @@ -212,7 +212,7 @@ // CHECK-7-NEXT: Name: 'Bc' // CHECK-7-NEXT: DefLocation: // CHECK-7-NEXT: LineNumber: 19 -// CHECK-7-NEXT: Filename: 'test' +// CHECK-7-NEXT: Filename: '{{.*}}' // CHECK-7-NEXT: Scoped: true // CHECK-7-NEXT: Members: // CHECK-7-NEXT: - 'A' @@ -229,6 +229,6 @@ // CHECK-8-NEXT: USR: '{{[0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z]}}' // CHECK-8-NEXT: DefLocation: // CHECK-8-NEXT: LineNumber: 39 -// CHECK-8-NEXT: Filename: 'test' +// CHECK-8-NEXT: Filename: '{{.*}}' // CHECK-8-NEXT: TagType: Class // CHECK-8-NEXT: ... Index: unittests/clang-doc/BitcodeTest.cpp =================================================================== --- unittests/clang-doc/BitcodeTest.cpp +++ unittests/clang-doc/BitcodeTest.cpp @@ -0,0 +1,260 @@ +//===-- clang-doc/BitcodeTest.cpp -----------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "BitcodeReader.h" +#include "BitcodeWriter.h" +#include "ClangDocTest.h" +#include "Representation.h" +#include "llvm/Bitcode/BitstreamReader.h" +#include "llvm/Bitcode/BitstreamWriter.h" +#include "gtest/gtest.h" + +namespace clang { +namespace doc { + +std::string writeInfo(Info *I) { + SmallString<2048> Buffer; + llvm::BitstreamWriter Stream(Buffer); + ClangDocBitcodeWriter Writer(Stream); + // Check that there was no error in the write. + assert(Writer.dispatchInfoForWrite(I) == false); + return Buffer.str().str(); +} + +std::vector> readInfo(StringRef Bitcode, + size_t NumInfos) { + llvm::BitstreamCursor Stream(Bitcode); + doc::ClangDocBitcodeReader Reader(Stream); + auto Infos = Reader.readBitcode(); + + // Check that there was no error in the read. + assert(Infos); + EXPECT_EQ(Infos.get().size(), NumInfos); + return std::move(Infos.get()); +} + +TEST(BitcodeTest, emitNamespaceInfoBitcode) { + NamespaceInfo I; + I.Name = "r"; + I.Namespace.emplace_back(EmptySID, "A", InfoType::IT_namespace); + + I.ChildNamespaces.emplace_back(EmptySID, "ChildNamespace", + InfoType::IT_namespace); + I.ChildRecords.emplace_back(EmptySID, "ChildStruct", InfoType::IT_record); + I.ChildFunctions.emplace_back(); + I.ChildEnums.emplace_back(); + + std::string WriteResult = writeInfo(&I); + EXPECT_TRUE(WriteResult.size() > 0); + std::vector> ReadResults = readInfo(WriteResult, 1); + + CheckNamespaceInfo(&I, InfoAsNamespace(ReadResults[0].get())); +} + +TEST(BitcodeTest, emitRecordInfoBitcode) { + RecordInfo I; + I.Name = "r"; + I.Namespace.emplace_back(EmptySID, "A", InfoType::IT_namespace); + + I.DefLoc = Location(10, llvm::SmallString<16>{"test.cpp"}); + I.Loc.emplace_back(12, llvm::SmallString<16>{"test.cpp"}); + + I.Members.emplace_back("int", "X", AccessSpecifier::AS_private); + I.TagType = TagTypeKind::TTK_Class; + I.Parents.emplace_back(EmptySID, "F", InfoType::IT_record); + I.VirtualParents.emplace_back(EmptySID, "G", InfoType::IT_record); + + I.ChildRecords.emplace_back(EmptySID, "ChildStruct", InfoType::IT_record); + I.ChildFunctions.emplace_back(); + I.ChildEnums.emplace_back(); + + std::string WriteResult = writeInfo(&I); + EXPECT_TRUE(WriteResult.size() > 0); + std::vector> ReadResults = readInfo(WriteResult, 1); + + CheckRecordInfo(&I, InfoAsRecord(ReadResults[0].get())); +} + +TEST(BitcodeTest, emitFunctionInfoBitcode) { + FunctionInfo I; + I.Name = "f"; + I.Namespace.emplace_back(EmptySID, "A", InfoType::IT_namespace); + + I.DefLoc = Location(10, llvm::SmallString<16>{"test.cpp"}); + I.Loc.emplace_back(12, llvm::SmallString<16>{"test.cpp"}); + + I.ReturnType = TypeInfo(EmptySID, "void", InfoType::IT_default); + I.Params.emplace_back("int", "P"); + + std::string WriteResult = writeInfo(&I); + EXPECT_TRUE(WriteResult.size() > 0); + std::vector> ReadResults = readInfo(WriteResult, 1); + + CheckFunctionInfo(&I, InfoAsFunction(ReadResults[0].get())); +} + +TEST(BitcodeTest, emitMethodInfoBitcode) { + FunctionInfo I; + I.Name = "f"; + I.Namespace.emplace_back(EmptySID, "A", InfoType::IT_namespace); + + I.DefLoc = Location(10, llvm::SmallString<16>{"test.cpp"}); + I.Loc.emplace_back(12, llvm::SmallString<16>{"test.cpp"}); + + I.ReturnType = TypeInfo(EmptySID, "void", InfoType::IT_default); + I.Params.emplace_back("int", "P"); + I.IsMethod = true; + I.Parent = Reference(EmptySID, "Parent", InfoType::IT_record); + + // TODO: fix access + // I.Access = AccessSpecifier::AS_private; + + std::string WriteResult = writeInfo(&I); + EXPECT_TRUE(WriteResult.size() > 0); + std::vector> ReadResults = readInfo(WriteResult, 1); + + CheckFunctionInfo(&I, InfoAsFunction(ReadResults[0].get())); +} + +TEST(BitcodeTest, emitEnumInfoBitcode) { + EnumInfo I; + I.Name = "e"; + I.Namespace.emplace_back(EmptySID, "A", InfoType::IT_namespace); + + I.DefLoc = Location(10, llvm::SmallString<16>{"test.cpp"}); + I.Loc.emplace_back(12, llvm::SmallString<16>{"test.cpp"}); + + I.Members.emplace_back("X"); + I.Scoped = true; + + std::string WriteResult = writeInfo(&I); + EXPECT_TRUE(WriteResult.size() > 0); + std::vector> ReadResults = readInfo(WriteResult, 1); + + CheckEnumInfo(&I, InfoAsEnum(ReadResults[0].get())); +} + +TEST(SerializeTest, emitInfoWithCommentBitcode) { + FunctionInfo F; + F.Name = "F"; + F.ReturnType = TypeInfo(EmptySID, "void", InfoType::IT_default); + F.DefLoc = Location(0, llvm::SmallString<16>{"test.cpp"}); + F.Params.emplace_back("int", "I"); + + CommentInfo Top; + Top.Kind = "FullComment"; + + Top.Children.emplace_back(llvm::make_unique()); + CommentInfo *BlankLine = Top.Children.back().get(); + BlankLine->Kind = "ParagraphComment"; + BlankLine->Children.emplace_back(llvm::make_unique()); + BlankLine->Children.back()->Kind = "TextComment"; + + Top.Children.emplace_back(llvm::make_unique()); + CommentInfo *Brief = Top.Children.back().get(); + Brief->Kind = "ParagraphComment"; + Brief->Children.emplace_back(llvm::make_unique()); + Brief->Children.back()->Kind = "TextComment"; + Brief->Children.back()->Name = "ParagraphComment"; + Brief->Children.back()->Text = " Brief description."; + + Top.Children.emplace_back(llvm::make_unique()); + CommentInfo *Extended = Top.Children.back().get(); + Extended->Kind = "ParagraphComment"; + Extended->Children.emplace_back(llvm::make_unique()); + Extended->Children.back()->Kind = "TextComment"; + Extended->Children.back()->Text = " Extended description that"; + Extended->Children.emplace_back(llvm::make_unique()); + Extended->Children.back()->Kind = "TextComment"; + Extended->Children.back()->Text = " continues onto the next line."; + + Top.Children.emplace_back(llvm::make_unique()); + CommentInfo *HTML = Top.Children.back().get(); + HTML->Kind = "ParagraphComment"; + HTML->Children.emplace_back(llvm::make_unique()); + HTML->Children.back()->Kind = "TextComment"; + HTML->Children.emplace_back(llvm::make_unique()); + HTML->Children.back()->Kind = "HTMLStartTagComment"; + HTML->Children.back()->Name = "ul"; + HTML->Children.back()->AttrKeys.emplace_back("class"); + HTML->Children.back()->AttrValues.emplace_back("test"); + HTML->Children.emplace_back(llvm::make_unique()); + HTML->Children.back()->Kind = "HTMLStartTagComment"; + HTML->Children.back()->Name = "li"; + HTML->Children.emplace_back(llvm::make_unique()); + HTML->Children.back()->Kind = "TextComment"; + HTML->Children.back()->Text = " Testing."; + HTML->Children.emplace_back(llvm::make_unique()); + HTML->Children.back()->Kind = "HTMLEndTagComment"; + HTML->Children.back()->Name = "ul"; + HTML->Children.back()->SelfClosing = true; + + Top.Children.emplace_back(llvm::make_unique()); + CommentInfo *Verbatim = Top.Children.back().get(); + Verbatim->Kind = "VerbatimBlockComment"; + Verbatim->Name = "verbatim"; + Verbatim->CloseName = "endverbatim"; + Verbatim->Children.emplace_back(llvm::make_unique()); + Verbatim->Children.back()->Kind = "VerbatimBlockLineComment"; + Verbatim->Children.back()->Text = " The description continues."; + + Top.Children.emplace_back(llvm::make_unique()); + CommentInfo *ParamOut = Top.Children.back().get(); + ParamOut->Kind = "ParamCommandComment"; + ParamOut->Direction = "[out]"; + ParamOut->ParamName = "I"; + ParamOut->Explicit = true; + ParamOut->Children.emplace_back(llvm::make_unique()); + ParamOut->Children.back()->Kind = "ParagraphComment"; + ParamOut->Children.back()->Children.emplace_back( + llvm::make_unique()); + ParamOut->Children.back()->Children.back()->Kind = "TextComment"; + ParamOut->Children.back()->Children.emplace_back( + llvm::make_unique()); + ParamOut->Children.back()->Children.back()->Kind = "TextComment"; + ParamOut->Children.back()->Children.back()->Text = " is a parameter."; + + Top.Children.emplace_back(llvm::make_unique()); + CommentInfo *ParamIn = Top.Children.back().get(); + ParamIn->Kind = "ParamCommandComment"; + ParamIn->Direction = "[in]"; + ParamIn->ParamName = "J"; + ParamIn->Children.emplace_back(llvm::make_unique()); + ParamIn->Children.back()->Kind = "ParagraphComment"; + ParamIn->Children.back()->Children.emplace_back( + llvm::make_unique()); + ParamIn->Children.back()->Children.back()->Kind = "TextComment"; + ParamIn->Children.back()->Children.back()->Text = " is a parameter."; + ParamIn->Children.back()->Children.emplace_back( + llvm::make_unique()); + ParamIn->Children.back()->Children.back()->Kind = "TextComment"; + + Top.Children.emplace_back(llvm::make_unique()); + CommentInfo *Return = Top.Children.back().get(); + Return->Kind = "BlockCommandComment"; + Return->Name = "return"; + Return->Explicit = true; + Return->Children.emplace_back(llvm::make_unique()); + Return->Children.back()->Kind = "ParagraphComment"; + Return->Children.back()->Children.emplace_back( + llvm::make_unique()); + Return->Children.back()->Children.back()->Kind = "TextComment"; + Return->Children.back()->Children.back()->Text = "void"; + + F.Description.emplace_back(std::move(Top)); + + std::string WriteResult = writeInfo(&F); + EXPECT_TRUE(WriteResult.size() > 0); + std::vector> ReadResults = readInfo(WriteResult, 1); + + CheckFunctionInfo(&F, InfoAsFunction(ReadResults[0].get())); +} + +} // namespace doc +} // namespace clang Index: unittests/clang-doc/CMakeLists.txt =================================================================== --- unittests/clang-doc/CMakeLists.txt +++ unittests/clang-doc/CMakeLists.txt @@ -11,6 +11,7 @@ ) add_extra_unittest(ClangDocTests + BitcodeTest.cpp ClangDocTest.cpp SerializeTest.cpp )