class ExtractionSemicolonPolicy

Declaration

class ExtractionSemicolonPolicy { /* full declaration omitted */ };

Description

Determines which semicolons should be inserted during extraction.

Declared at: clang/include/clang/Tooling/Refactoring/Extract/SourceExtraction.h:24

Member Variables

private bool IsNeededInExtractedFunction
private bool IsNeededInOriginalFunction

Method Overview

Methods

ExtractionSemicolonPolicy(
    bool IsNeededInExtractedFunction,
    bool IsNeededInOriginalFunction)

Declared at: clang/include/clang/Tooling/Refactoring/Extract/SourceExtraction.h:40

Parameters

bool IsNeededInExtractedFunction
bool IsNeededInOriginalFunction

static clang::tooling::ExtractionSemicolonPolicy
compute(const clang::Stmt* S,
        clang::SourceRange& ExtractedRange,
        const clang::SourceManager& SM,
        const clang::LangOptions& LangOpts)

Description

Returns the semicolon insertion policy that is needed for extraction of the given statement from the given source range.

Declared at: clang/include/clang/Tooling/Refactoring/Extract/SourceExtraction.h:34

Parameters

const clang::Stmt* S
clang::SourceRange& ExtractedRange
const clang::SourceManager& SM
const clang::LangOptions& LangOpts

bool isNeededInExtractedFunction() const

Declared at: clang/include/clang/Tooling/Refactoring/Extract/SourceExtraction.h:26

bool isNeededInOriginalFunction() const

Declared at: clang/include/clang/Tooling/Refactoring/Extract/SourceExtraction.h:30