clang 24.0.0git
clang::edit Namespace Reference

Classes

class  Commit
class  EditedSource
class  EditsReceiver
class  FileOffset

Functions

void mergeFixits (ArrayRef< FixItHint > FixItHints, const SourceManager &SM, const LangOptions &LangOpts, SmallVectorImpl< FixItHint > &MergedFixits)
 Merges FixItHints into a normalized set of file edits.
bool rewriteObjCRedundantCallWithLiteral (const ObjCMessageExpr *Msg, const NSAPI &NS, Commit &commit)
bool rewriteToObjCLiteralSyntax (const ObjCMessageExpr *Msg, const NSAPI &NS, Commit &commit, const ParentMap *PMap)
bool rewriteToObjCSubscriptSyntax (const ObjCMessageExpr *Msg, const NSAPI &NS, Commit &commit)

Function Documentation

◆ mergeFixits()

void clang::edit::mergeFixits ( ArrayRef< FixItHint > FixItHints,
const SourceManager & SM,
const LangOptions & LangOpts,
SmallVectorImpl< FixItHint > & MergedFixits )

Merges FixItHints into a normalized set of file edits.

MergedFixits is cleared before use. Removals may be adjusted to avoid changing token boundaries.

Definition at line 503 of file EditedSource.cpp.

References clang::edit::EditedSource::applyRewrites(), clang::edit::EditedSource::commit(), clang::edit::Commit::insert(), clang::edit::Commit::insertFromRange(), clang::edit::Commit::remove(), and clang::edit::Commit::replace().

Referenced by clang::DiagnosticRenderer::emitDiagnostic().

◆ rewriteObjCRedundantCallWithLiteral()

◆ rewriteToObjCLiteralSyntax()

◆ rewriteToObjCSubscriptSyntax()