llvm-project/clang/lib/Frontend
Argyrios Kyrtzidis 71731d6b05 Implement -working-directory.
When -working-directory is passed in command line, file paths are resolved relative to the specified directory.
This helps both when using libclang (where we can't require the user to actually change the working directory)
and to help reproduce test cases when the reproduction work comes along.

--FileSystemOptions is introduced which controls how file system operations are performed (currently it just contains
 the working directory value if set).
--FileSystemOptions are passed around to various interfaces that perform file operations.
--Opening & reading the content of files should be done only through FileManager. This is useful in general since
 file operations will be abstracted in the future for the reproduction mechanism.

FileSystemOptions is independent of FileManager so that we can have multiple translation units sharing the same
FileManager but with different FileSystemOptions.

Addresses rdar://8583824.

llvm-svn: 118203
2010-11-03 22:45:23 +00:00
..
ASTConsumers.cpp Send AST dumping/printing to stdout instead of stderr. 2010-08-03 17:29:57 +00:00
ASTMerge.cpp Implement -working-directory. 2010-11-03 22:45:23 +00:00
ASTUnit.cpp Implement -working-directory. 2010-11-03 22:45:23 +00:00
BoostConAction.cpp Another chunk of the new RecursiveASTVisitor implementation: switch the return 2010-06-10 10:31:57 +00:00
CMakeLists.txt Revert "CMake: Update to use standard CMake dependency tracking facilities instead" 2010-09-13 23:54:41 +00:00
CacheTokens.cpp zap dead code. 2010-09-04 18:12:20 +00:00
CompilerInstance.cpp Implement -working-directory. 2010-11-03 22:45:23 +00:00
CompilerInvocation.cpp Implement -working-directory. 2010-11-03 22:45:23 +00:00
DeclXML.cpp Add declarations nested in a linkage specification to the output of 2010-10-18 14:35:28 +00:00
DependencyFile.cpp It's not necessary to call flush() on a raw_ostream immediately prior 2010-07-26 21:29:50 +00:00
DiagChecker.cpp Another step in the process of making the parser depend on Sema: 2010-08-20 18:27:03 +00:00
DocumentXML.cpp Improved -ast-print-xml for C++, from Sebastien Binet! 2010-05-10 17:43:18 +00:00
FrontendAction.cpp Implement -working-directory. 2010-11-03 22:45:23 +00:00
FrontendActions.cpp Implement -working-directory. 2010-11-03 22:45:23 +00:00
FrontendOptions.cpp Frontend: Add FrontendAction support for handling LLVM IR inputs. 2010-06-07 23:26:47 +00:00
InitHeaderSearch.cpp Implement -working-directory. 2010-11-03 22:45:23 +00:00
InitPreprocessor.cpp Implement -working-directory. 2010-11-03 22:45:23 +00:00
LangStandards.cpp rename llvm::llvm_report_error -> llvm::report_fatal_error 2010-04-07 22:58:06 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
PrintPreprocessedOutput.cpp Handle '#line' in '-E' that has an empty file name. Fixes <rdar://problem/8439412>. 2010-09-17 00:41:18 +00:00
StmtXML.cpp Eliminate usage of ObjCSuperExpr used for 2010-10-14 16:04:05 +00:00
TextDiagnosticBuffer.cpp Add TextDiagnosticBuffer::FlushDiagnostics, for forwarding the buffered diagnostics to a different diagnostics engine. 2009-11-30 08:41:34 +00:00
TextDiagnosticPrinter.cpp Teach SourceManager::getPresumedLoc() how to fail gracefully if getLineNumber/getColumnNumber fail 2010-11-02 00:39:22 +00:00
TypeXML.cpp Use the llvm coding convention for indentation for switch. 2010-01-20 02:03:14 +00:00
VerifyDiagnosticsClient.cpp StringRefize. 2010-09-01 17:28:48 +00:00
Warnings.cpp Add an option -fshow-overloads=best|all to limit the number of overload 2010-06-11 05:57:47 +00:00