[HIPIFY][fix][#204] Suppress warning message: #pragma once in main file

This commit is contained in:
Evgeny Mankov committed 2019-04-24 20:35:52 +03:00
1 vanhempi 45c7535b1f
commit df9418c3cd
3 files changed
+13

No files matched your search

+3
Näytä tiedosto
@@ -222,6 +222,9 @@ int main(int argc, const char **argv) {
#if defined(HIPIFY_CLANG_RES)
Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster("-resource-dir=" HIPIFY_CLANG_RES));
#endif
if (llcompat::pragma_once_outside_header()) {
Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster("-Wno-pragma-once-outside-header", ct::ArgumentInsertPosition::BEGIN));
}
if (!MacroNames.empty()) {
for (std::string s : MacroNames) {
Tool.appendArgumentsAdjuster(ct::getInsertArgumentAdjuster("-D", ct::ArgumentInsertPosition::END));