Lines Matching refs:Language
185 IO.mapOptional("Language", Style.Language); in mapping()
194 if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) && in mapping()
204 FormatStyle::LanguageKind OldLanguage = Style.Language; in mapping()
205 FormatStyle::LanguageKind Language = in mapping() local
206 ((FormatStyle *)IO.getContext())->Language; in mapping()
207 if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) { in mapping()
211 Style.Language = OldLanguage; in mapping()
374 if (Seq.size() > 0 && Seq[0].Language == FormatStyle::LK_None) { in element()
378 Template.Language = FormatStyle::LK_None; in element()
465 LLVMStyle.Language = FormatStyle::LK_Cpp; in getLLVMStyle()
544 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) { in getGoogleStyle() argument
546 GoogleStyle.Language = Language; in getGoogleStyle()
568 if (Language == FormatStyle::LK_Java) { in getGoogleStyle()
579 } else if (Language == FormatStyle::LK_JavaScript) { in getGoogleStyle()
587 } else if (Language == FormatStyle::LK_Proto) { in getGoogleStyle()
595 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language) { in getChromiumStyle() argument
596 FormatStyle ChromiumStyle = getGoogleStyle(Language); in getChromiumStyle()
597 if (Language == FormatStyle::LK_Java) { in getChromiumStyle()
676 bool getPredefinedStyle(StringRef Name, FormatStyle::LanguageKind Language, in getPredefinedStyle() argument
681 *Style = getChromiumStyle(Language); in getPredefinedStyle()
685 *Style = getGoogleStyle(Language); in getPredefinedStyle()
696 Style->Language = Language; in getPredefinedStyle()
702 FormatStyle::LanguageKind Language = Style->Language; in parseConfiguration() local
703 assert(Language != FormatStyle::LK_None); in parseConfiguration()
720 if (Styles[i].Language == FormatStyle::LK_None && i != 0) in parseConfiguration()
724 if (Styles[i].Language == Styles[j].Language) { in parseConfiguration()
736 if (Styles[i].Language == Language || in parseConfiguration()
737 Styles[i].Language == FormatStyle::LK_None) { in parseConfiguration()
739 Style->Language = Language; in parseConfiguration()
784 if (Style.Language == FormatStyle::LK_JavaScript) in lex()
804 if (Style.Language == FormatStyle::LK_JavaScript) { in tryMergePreviousTokens()
1276 if (Style.Language == FormatStyle::LK_Java && in getNextToken()
1280 } else if (Style.Language == FormatStyle::LK_JavaScript && in getNextToken()
1320 if (Style.Language == FormatStyle::LK_Cpp) { in getNextToken()
1372 } else if (Style.Language == FormatStyle::LK_JavaScript && in readRawToken()
1401 static StringRef getLanguageName(FormatStyle::LanguageKind Language) { in getLanguageName() argument
1402 switch (Language) { in getLanguageName()
1429 DEBUG(llvm::dbgs() << "Language: " << getLanguageName(Style.Language) in Formatter()
1920 bool AlternativeOperators = Style.Language == FormatStyle::LK_Cpp; in getFormattingLangOpts()
1957 Style.Language = getLanguageByFileName(FileName); in getStyle()
1958 if (!getPredefinedStyle(FallbackStyle, Style.Language, &Style)) { in getStyle()
1974 if (!getPredefinedStyle(StyleName, Style.Language, &Style)) in getStyle()
2030 << getLanguageName(Style.Language) << ": " in getStyle()