clang  6.0.0svn
Classes | Namespaces | Functions
Utils.h File Reference
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/VirtualFileSystem.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Option/OptSpecifier.h"
#include <utility>
Include dependency graph for Utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  clang::DependencyCollector
 An interface for collecting the dependencies of a compilation. More...
 
class  clang::DependencyFileGenerator
 Builds a depdenency file when attached to a Preprocessor (for includes) and ASTReader (for module imports), and writes it out at the end of processing a source file. More...
 
class  clang::ModuleDependencyCollector
 Collects the dependencies for imported modules into a directory. More...
 

Namespaces

 llvm
 DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterators.
 
 llvm::opt
 
 clang
 Dataflow Directional Tag Classes.
 

Functions

void clang::ApplyHeaderSearchOptions (HeaderSearch &HS, const HeaderSearchOptions &HSOpts, const LangOptions &Lang, const llvm::Triple &triple)
 Apply the header search options to get given HeaderSearch object. More...
 
void clang::InitializePreprocessor (Preprocessor &PP, const PreprocessorOptions &PPOpts, const PCHContainerReader &PCHContainerRdr, const FrontendOptions &FEOpts)
 InitializePreprocessor - Initialize the preprocessor getting it and the environment ready to process a single file. More...
 
void clang::DoPrintPreprocessedInput (Preprocessor &PP, raw_ostream *OS, const PreprocessorOutputOptions &Opts)
 DoPrintPreprocessedInput - Implement -E mode. More...
 
void clang::AttachDependencyGraphGen (Preprocessor &PP, StringRef OutputFile, StringRef SysRoot)
 AttachDependencyGraphGen - Create a dependency graph generator, and attach it to the given preprocessor. More...
 
void clang::AttachHeaderIncludeGen (Preprocessor &PP, const DependencyOutputOptions &DepOpts, bool ShowAllHeaders=false, StringRef OutputPath="", bool ShowDepth=true, bool MSStyle=false)
 AttachHeaderIncludeGen - Create a header include list generator, and attach it to the given preprocessor. More...
 
void clang::CacheTokens (Preprocessor &PP, raw_pwrite_stream *OS)
 Cache tokens for use with PCH. Note that this requires a seekable stream. More...
 
IntrusiveRefCntPtr< ExternalSemaSourceclang::createChainedIncludesSource (CompilerInstance &CI, IntrusiveRefCntPtr< ExternalSemaSource > &Reader)
 The ChainedIncludesSource class converts headers to chained PCHs in memory, mainly for testing. More...
 
std::unique_ptr< CompilerInvocationclang::createInvocationFromCommandLine (ArrayRef< const char *> Args, IntrusiveRefCntPtr< DiagnosticsEngine > Diags=IntrusiveRefCntPtr< DiagnosticsEngine >(), IntrusiveRefCntPtr< vfs::FileSystem > VFS=nullptr)
 createInvocationFromCommandLine - Construct a compiler invocation object for a command line argument vector. More...
 
int clang::getLastArgIntValue (const llvm::opt::ArgList &Args, llvm::opt::OptSpecifier Id, int Default, DiagnosticsEngine *Diags=nullptr)
 Return the value of the last argument as an integer, or a default. More...
 
int clang::getLastArgIntValue (const llvm::opt::ArgList &Args, llvm::opt::OptSpecifier Id, int Default, DiagnosticsEngine &Diags)
 
uint64_t clang::getLastArgUInt64Value (const llvm::opt::ArgList &Args, llvm::opt::OptSpecifier Id, uint64_t Default, DiagnosticsEngine *Diags=nullptr)
 
uint64_t clang::getLastArgUInt64Value (const llvm::opt::ArgList &Args, llvm::opt::OptSpecifier Id, uint64_t Default, DiagnosticsEngine &Diags)
 
void clang::BuryPointer (const void *Ptr)
 
template<typename T >
void clang::BuryPointer (std::unique_ptr< T > Ptr)