Lines Matching defs:FormatStyle
454 Expected<FormatStyle> FormatStyle =
457 if (!FormatStyle) {
458 llvm::errs() << toString(FormatStyle.takeError()) << "\n";
464 FormatStyle->QualifierAlignment =
465 StringSwitch<FormatStyle::QualifierAlignmentStyle>(
467 .Case("right", FormatStyle::QAS_Right)
468 .Case("left", FormatStyle::QAS_Left)
469 .Default(FormatStyle->QualifierAlignment);
471 if (FormatStyle->QualifierAlignment == FormatStyle::QAS_Left) {
472 FormatStyle->QualifierOrder = {"const", "volatile", "type"};
473 } else if (FormatStyle->QualifierAlignment == FormatStyle::QAS_Right) {
474 FormatStyle->QualifierOrder = {"type", "const", "volatile"};
476 FormatStyle->QualifierAlignment = FormatStyle::QAS_Custom;
480 FormatStyle->QualifierOrder = {Qualifiers.begin(), Qualifiers.end()};
485 FormatStyle->SortIncludes = FormatStyle::SI_CaseSensitive;
487 FormatStyle->SortIncludes = FormatStyle::SI_Never;
490 Replacements Replaces = sortIncludes(*FormatStyle, Code->getBuffer(), Ranges,
495 if (FormatStyle->isJson() && !FormatStyle->DisableFormat) {
511 reformat(*FormatStyle, *ChangedCode, Ranges, AssumedFileName, &Status);
573 Expected<clang::format::FormatStyle> FormatStyle = clang::format::getStyle(
577 if (!FormatStyle) {
578 llvm::errs() << toString(FormatStyle.takeError()) << "\n";
581 std::string Config = clang::format::configurationAsText(*FormatStyle);