clang-tools 20.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/Frontend/CompilerInvocation.h"
#include "clang/Tooling/CompilationDatabase.h"
#include "clang/Tooling/Tooling.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 <optional>
#include <string>
#include <vector>
#include "clang/Driver/Options.inc"

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::clangd
 FIXME: Skip testing on windows temporarily due to the different escaping code mode.
 

Macros

#define PREFIX(NAME, VALUE)
 
#define OPTION(PREFIX, PREFIXED_NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, VALUES)    Prefixes[DriverID::OPT_##ID] = PREFIX;
 
#define OPTION(PREFIX, PREFIXED_NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, VISIBILITY, PARAM, HELPTEXT, HELPTEXTSFORVARIANTS, METAVAR, VALUES)    {DriverID::OPT_##ID, DriverID::OPT_##ALIAS, ALIASARGS},
 

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 [1/2]

#define OPTION (   PREFIX,
  PREFIXED_NAME,
  ID,
  KIND,
  GROUP,
  ALIAS,
  ALIASARGS,
  FLAGS,
  VISIBILITY,
  PARAM,
  HELPTEXT,
  HELPTEXTSFORVARIANTS,
  METAVAR,
  VALUES 
)     Prefixes[DriverID::OPT_##ID] = PREFIX;

◆ OPTION [2/2]

#define OPTION (   PREFIX,
  PREFIXED_NAME,
  ID,
  KIND,
  GROUP,
  ALIAS,
  ALIASARGS,
  FLAGS,
  VISIBILITY,
  PARAM,
  HELPTEXT,
  HELPTEXTSFORVARIANTS,
  METAVAR,
  VALUES 
)     {DriverID::OPT_##ID, DriverID::OPT_##ALIAS, ALIASARGS},

◆ PREFIX

#define PREFIX (   NAME,
  VALUE 
)
Value:
static constexpr llvm::StringLiteral NAME##_init[] = VALUE; \
static constexpr llvm::ArrayRef<llvm::StringLiteral> NAME( \
NAME##_init, std::size(NAME##_init) - 1);