Lines Matching refs:Language
203 IO.mapOptional("Language", Style.Language); in mapping()
212 if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) && in mapping()
222 FormatStyle::LanguageKind OldLanguage = Style.Language; in mapping()
223 FormatStyle::LanguageKind Language = in mapping() local
224 ((FormatStyle *)IO.getContext())->Language; in mapping()
225 if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) { in mapping()
229 Style.Language = OldLanguage; in mapping()
398 if (Seq.size() > 0 && Seq[0].Language == FormatStyle::LK_None) { in element()
402 Template.Language = FormatStyle::LK_None; in element()
489 LLVMStyle.Language = FormatStyle::LK_Cpp; in getLLVMStyle()
573 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) { in getGoogleStyle() argument
575 GoogleStyle.Language = Language; in getGoogleStyle()
598 if (Language == FormatStyle::LK_Java) { in getGoogleStyle()
609 } else if (Language == FormatStyle::LK_JavaScript) { in getGoogleStyle()
621 } else if (Language == FormatStyle::LK_Proto) { in getGoogleStyle()
629 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language) { in getChromiumStyle() argument
630 FormatStyle ChromiumStyle = getGoogleStyle(Language); in getChromiumStyle()
631 if (Language == FormatStyle::LK_Java) { in getChromiumStyle()
711 bool getPredefinedStyle(StringRef Name, FormatStyle::LanguageKind Language, in getPredefinedStyle() argument
716 *Style = getChromiumStyle(Language); in getPredefinedStyle()
720 *Style = getGoogleStyle(Language); in getPredefinedStyle()
731 Style->Language = Language; in getPredefinedStyle()
737 FormatStyle::LanguageKind Language = Style->Language; in parseConfiguration() local
738 assert(Language != FormatStyle::LK_None); in parseConfiguration()
755 if (Styles[i].Language == FormatStyle::LK_None && i != 0) in parseConfiguration()
759 if (Styles[i].Language == Styles[j].Language) { in parseConfiguration()
771 if (Styles[i].Language == Language || in parseConfiguration()
772 Styles[i].Language == FormatStyle::LK_None) { in parseConfiguration()
774 Style->Language = Language; in parseConfiguration()
808 if (Style.Language == FormatStyle::LK_JavaScript && in analyze()
1389 if (Style.Language == FormatStyle::LanguageKind::LK_JavaScript) in sortIncludes()
1497 if (Style.Language != FormatStyle::LanguageKind::LK_Cpp) in fixCppIncludeInsertions()
1661 bool AlternativeOperators = Style.Language == FormatStyle::LK_Cpp; in getFormattingLangOpts()
1701 Style.Language = getLanguageByFileName(FileName); in getStyle()
1702 if (!getPredefinedStyle(FallbackStyle, Style.Language, &Style)) { in getStyle()
1718 if (!getPredefinedStyle(StyleName, Style.Language, &Style)) in getStyle()
1780 << getLanguageName(Style.Language) << ": " in getStyle()