forked from OSchip/llvm-project
parent
e85169cd1b
commit
9d90579b6d
|
@ -60,6 +60,12 @@ def warn_pch_heinous_extensions : Error<
|
||||||
def warn_pch_lax_vector_conversions : Error<
|
def warn_pch_lax_vector_conversions : Error<
|
||||||
"lax vector conversions were %select{disabled|enabled}0 in PCH file but "
|
"lax vector conversions were %select{disabled|enabled}0 in PCH file but "
|
||||||
"are currently %select{disabled|enabled}1">;
|
"are currently %select{disabled|enabled}1">;
|
||||||
|
def warn_pch_altivec : Error<
|
||||||
|
"AltiVec initializers were %select{disabled|enabled}0 in PCH file but "
|
||||||
|
"are currently %select{disabled|enabled}1">;
|
||||||
|
def warn_pch_opencl : Error<
|
||||||
|
"OpenCL language extensions were %select{disabled|enabled}0 in PCH file "
|
||||||
|
"but are currently %select{disabled|enabled}1">;
|
||||||
def warn_pch_exceptions : Error<
|
def warn_pch_exceptions : Error<
|
||||||
"exceptions were %select{disabled|enabled}0 in PCH file but "
|
"exceptions were %select{disabled|enabled}0 in PCH file but "
|
||||||
"are currently %select{disabled|enabled}1">;
|
"are currently %select{disabled|enabled}1">;
|
||||||
|
|
|
@ -71,6 +71,7 @@ PCHValidator::ReadLanguageOptions(const LangOptions &LangOpts) {
|
||||||
PARSE_LANGOPT_BENIGN(WritableStrings);
|
PARSE_LANGOPT_BENIGN(WritableStrings);
|
||||||
PARSE_LANGOPT_IMPORTANT(LaxVectorConversions,
|
PARSE_LANGOPT_IMPORTANT(LaxVectorConversions,
|
||||||
diag::warn_pch_lax_vector_conversions);
|
diag::warn_pch_lax_vector_conversions);
|
||||||
|
PARSE_LANGOPT_IMPORTANT(AltiVec, diag::warn_pch_altivec);
|
||||||
PARSE_LANGOPT_IMPORTANT(Exceptions, diag::warn_pch_exceptions);
|
PARSE_LANGOPT_IMPORTANT(Exceptions, diag::warn_pch_exceptions);
|
||||||
PARSE_LANGOPT_IMPORTANT(NeXTRuntime, diag::warn_pch_objc_runtime);
|
PARSE_LANGOPT_IMPORTANT(NeXTRuntime, diag::warn_pch_objc_runtime);
|
||||||
PARSE_LANGOPT_IMPORTANT(Freestanding, diag::warn_pch_freestanding);
|
PARSE_LANGOPT_IMPORTANT(Freestanding, diag::warn_pch_freestanding);
|
||||||
|
@ -105,6 +106,7 @@ PCHValidator::ReadLanguageOptions(const LangOptions &LangOpts) {
|
||||||
}
|
}
|
||||||
PARSE_LANGOPT_BENIGN(getVisibilityMode());
|
PARSE_LANGOPT_BENIGN(getVisibilityMode());
|
||||||
PARSE_LANGOPT_BENIGN(InstantiationDepth);
|
PARSE_LANGOPT_BENIGN(InstantiationDepth);
|
||||||
|
PARSE_LANGOPT_IMPORTANT(OpenCL, diag::warn_pch_opencl);
|
||||||
#undef PARSE_LANGOPT_IRRELEVANT
|
#undef PARSE_LANGOPT_IRRELEVANT
|
||||||
#undef PARSE_LANGOPT_BENIGN
|
#undef PARSE_LANGOPT_BENIGN
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue