clang 19.0.0git
Classes | Namespaces | Functions
Utils.h File Reference
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/LLVM.h"
#include "clang/Driver/OptionUtils.h"
#include "clang/Frontend/DependencyOutputOptions.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/FileCollector.h"
#include "llvm/Support/VirtualFileSystem.h"
#include <cstdint>
#include <memory>
#include <string>
#include <system_error>
#include <utility>
#include <vector>

Go to the source code of this file.


class  clang::DependencyCollector
 An interface for collecting the dependencies of a compilation. More...
class  clang::DependencyFileGenerator
 Builds a dependency 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...
struct  clang::CreateInvocationOptions
 Optional inputs to createInvocation. More...


namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.


void clang::InitializePreprocessor (Preprocessor &PP, const PreprocessorOptions &PPOpts, const PCHContainerReader &PCHContainerRdr, const FrontendOptions &FEOpts, const CodeGenOptions &CodeGenOpts)
 InitializePreprocessor - Initialize the preprocessor getting it and the environment ready to process a single file.
void clang::DoPrintPreprocessedInput (Preprocessor &PP, raw_ostream *OS, const PreprocessorOutputOptions &Opts)
 DoPrintPreprocessedInput - Implement -E mode.
void clang::AttachDependencyGraphGen (Preprocessor &PP, StringRef OutputFile, StringRef SysRoot)
 AttachDependencyGraphGen - Create a dependency graph generator, and attach it to the given preprocessor.
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.
IntrusiveRefCntPtr< ExternalSemaSourceclang::createChainedIncludesSource (CompilerInstance &CI, IntrusiveRefCntPtr< ExternalSemaSource > &Reader)
 The ChainedIncludesSource class converts headers to chained PCHs in memory, mainly for testing.
std::unique_ptr< CompilerInvocationclang::createInvocation (ArrayRef< const char * > Args, CreateInvocationOptions Opts={})
 Interpret clang arguments in preparation to parse a file.