clang-tools  14.0.0git
Namespaces | Macros | Functions
CompileCommands.cpp File Reference
#include "CompileCommands.h"
#include "Config.h"
#include "support/Logger.h"
#include "support/Trace.h"
#include "clang/Driver/Driver.h"
#include "clang/Driver/Options.h"
#include "clang/Driver/ToolChain.h"
#include "clang/Frontend/CompilerInvocation.h"
#include "clang/Tooling/ArgumentsAdjusters.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Option/Option.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/FileUtilities.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Program.h"
#include <iterator>
#include <string>
#include <vector>
#include "clang/Driver/Options.inc"
Include dependency graph for CompileCommands.cpp:

Go to the source code of this file.

Namespaces

 clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
 clang::clangd
 

Macros

#define PREFIX(NAME, VALUE)   static const char *const NAME[] = VALUE;
 
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, HELP, METAVAR, VALUES)
 

Functions

std::string clang::clangd::printArgv (llvm::ArrayRef< llvm::StringRef > Args)
 
std::string clang::clangd::printArgv (llvm::ArrayRef< std::string > Args)
 

Macro Definition Documentation

◆ OPTION

#define OPTION (   PREFIX,
  NAME,
  ID,
  KIND,
  GROUP,
  ALIAS,
  ALIASARGS,
  FLAGS,
  PARAM,
  HELP,
  METAVAR,
  VALUES 
)
Value:
if (DriverID::OPT_##ALIAS != DriverID::OPT_INVALID && ALIASARGS == nullptr) \
AddAlias(DriverID::OPT_##ID, DriverID::OPT_##ALIAS); \
Prefixes[DriverID::OPT_##ID] = PREFIX;

◆ PREFIX

#define PREFIX (   NAME,
  VALUE 
)    static const char *const NAME[] = VALUE;
PREFIX
#define PREFIX(NAME, VALUE)
ID
static char ID
Definition: Logger.cpp:74