clang-tools 22.0.0git
clang Namespace Reference

===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// More...

Namespaces

namespace  ast_matchers
namespace  clangd
 FIXME: Skip testing on windows temporarily due to the different escaping code mode.
namespace  doc
namespace  find_all_symbols
namespace  include_fixer
namespace  move
namespace  pp_trace
namespace  query
namespace  reorder_fields
namespace  replace
namespace  serialization
namespace  syntax
namespace  tidy
namespace  tooling

Classes

class  CodeBlock
class  Heading
class  Ruler

Functions

static Token getTokenAtLoc (SourceLocation Loc, const MatchFinder::MatchResult &MatchResult, IdentifierTable &IdentTable)
static bool isUsedToInitializeAConstant (const MatchFinder::MatchResult &Result, const DynTypedNode &Node)
static bool isUsedToDefineATypeAlias (const MatchFinder::MatchResult &Result, const DynTypedNode &Node)
static bool isUsedToDefineABitField (const MatchFinder::MatchResult &Result, const DynTypedNode &Node)
std::string canonicalizeSpaces (llvm::StringRef Input)
std::string renderBlocks (llvm::ArrayRef< std::unique_ptr< Block > > Children, void(Block::*RenderFunc)(llvm::raw_ostream &) const)
std::string indentLines (llvm::StringRef Input)

Detailed Description

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

===- ThreadCrashReporterTests.cpp - Thread local signal handling tests -===//

Whether current platform treats paths case insensitively.

-tidy-diff

===– Representation.h - ClangDoc Representation ----------—*- C++ -*-===//

ClangTidy Diff Checker
======================

This script reads input from a unified diff, runs clang-tidy on all changed
files and outputs clang-tidy warnings in changed lines only. This is useful to
detect clang-tidy regressions in the lines touched by a specific patch.
Example usage for git/svn users:

  git diff -U0 HEAD^ | clang-tidy-diff.py -p1
  svn diff --diff-cmd=diff -x-U0 | \
      clang-tidy-diff.py -fix -checks=-*,modernize-use-override

Function Documentation

◆ canonicalizeSpaces()

std::string clang::canonicalizeSpaces ( llvm::StringRef Input)

◆ getTokenAtLoc()

Token clang::getTokenAtLoc ( SourceLocation Loc,
const MatchFinder::MatchResult & MatchResult,
IdentifierTable & IdentTable )
static

◆ indentLines()

std::string clang::indentLines ( llvm::StringRef Input)

Definition at line 393 of file Markup.cpp.

◆ isUsedToDefineABitField()

bool clang::isUsedToDefineABitField ( const MatchFinder::MatchResult & Result,
const DynTypedNode & Node )
static

Definition at line 58 of file MagicNumbersCheck.cpp.

◆ isUsedToDefineATypeAlias()

bool clang::isUsedToDefineATypeAlias ( const MatchFinder::MatchResult & Result,
const DynTypedNode & Node )
static

Definition at line 46 of file MagicNumbersCheck.cpp.

◆ isUsedToInitializeAConstant()

bool clang::isUsedToInitializeAConstant ( const MatchFinder::MatchResult & Result,
const DynTypedNode & Node )
static

Definition at line 26 of file MagicNumbersCheck.cpp.

◆ renderBlocks()

std::string clang::renderBlocks ( llvm::ArrayRef< std::unique_ptr< Block > > Children,
void(Block::* RenderFunc )(llvm::raw_ostream &) const )

Definition at line 300 of file Markup.cpp.

References clang::clangd::Children.