clang 24.0.0git
SourceTransformationFrontendAction.cpp File Reference

Go to the source code of this file.

Enumerations

enum  SourceTransformationCompanion { STCompanion_WPAFile , STCompanion_EditFile , STCompanion_ReportFile , STCompanion_CompilationUnitId }
 Companion options required by --ssaf-source-transformation=. More...
enum  SourceTransformationDependent { STDependent_EditFile , STDependent_ReportFile }
 Options that depend on --ssaf-source-transformation= being set. More...

Functions

static std::optional< StringRef > bareExtension (StringRef Path)
 Returns the bare extension of Path (no leading dot), or std::nullopt if Path is empty or has no recognizable extension.
static bool reportOrphanOptionMisuse (DiagnosticsEngine &Diags, const SSAFOptions &Opts)
 Returns true if any orphan-option warning was reported.

Enumeration Type Documentation

◆ SourceTransformationCompanion

Companion options required by --ssaf-source-transformation=.

Values must match the select branch order in warn_ssaf_source_transformation_requires.

Enumerator
STCompanion_WPAFile 
STCompanion_EditFile 
STCompanion_ReportFile 
STCompanion_CompilationUnitId 

Definition at line 95 of file SourceTransformationFrontendAction.cpp.

◆ SourceTransformationDependent

Options that depend on --ssaf-source-transformation= being set.

Values must match the select branch order in warn_ssaf_option_ignored_without_source_transformation.

Enumerator
STDependent_EditFile 
STDependent_ReportFile 

Definition at line 105 of file SourceTransformationFrontendAction.cpp.

Function Documentation

◆ bareExtension()

std::optional< StringRef > bareExtension ( StringRef Path)
static

Returns the bare extension of Path (no leading dot), or std::nullopt if Path is empty or has no recognizable extension.

Definition at line 85 of file SourceTransformationFrontendAction.cpp.

◆ reportOrphanOptionMisuse()

bool reportOrphanOptionMisuse ( DiagnosticsEngine & Diags,
const SSAFOptions & Opts )
static