ΒΆtooling::Replacements reformat(
const clang::format::FormatStyle& Style,
llvm::StringRef Code,
ArrayRef<tooling::Range> Ranges,
llvm::StringRef FileName,
bool* IncompleteFormat)
tooling::Replacements reformat(
const clang::format::FormatStyle& Style,
llvm::StringRef Code,
ArrayRef<tooling::Range> Ranges,
llvm::StringRef FileName,
bool* IncompleteFormat)
Description
Same as above, except if ``IncompleteFormat`` is non-null, its value will be set to true if any of the affected ranges were not formatted due to a non-recoverable syntax error.
Declared at: clang/include/clang/Format/Format.h:4172
Parameters
- const clang::format::FormatStyle& Style
- llvm::StringRef Code
- ArrayRef<tooling::Range> Ranges
- llvm::StringRef FileName
- bool* IncompleteFormat