Lines Matching refs:Contents
127 llvm::Optional<std::string> Contents) { in buildInvocation() argument
135 if (Contents) { in buildInvocation()
136 Inputs.Contents = *Contents; in buildInvocation()
137 log("Imaginary source file contents:\n{0}", Inputs.Contents); in buildInvocation()
139 if (auto Contents = TFS.view(llvm::None)->getBufferForFile(File)) { in buildInvocation() local
140 Inputs.Contents = Contents->get()->getBuffer().str(); in buildInvocation()
142 elog("Couldn't read {0}: {1}", File, Contents.getError().message()); in buildInvocation()
159 Style = getFormatStyleForFile(File, Inputs.Contents, TFS); in buildInvocation()
223 Position Pos = offsetToPosition(Inputs.Contents, Start); in testLocationFeatures()
264 Position EndPos = offsetToPosition(Inputs.Contents, End); in testLocationFeatures()
279 llvm::Optional<std::string> Contents; in check() local
284 Contents = R"cpp( in check()
301 if (!C.buildCommand(TFS) || !C.buildInvocation(TFS, Contents) || in check()