xref: /llvm-project/clang/lib/Headers/cuda_wrappers/bits/basic_string.tcc (revision 588023ddafb4b0cd11914ab068c6d07187374d69)
1*588023ddSArtem Belevich // CUDA headers define __noinline__ which interferes with libstdc++'s use of
2*588023ddSArtem Belevich // `__attribute((__noinline__))`. In order to avoid compilation error,
3*588023ddSArtem Belevich // temporarily unset __noinline__ when we include affected libstdc++ header.
4*588023ddSArtem Belevich 
5*588023ddSArtem Belevich #pragma push_macro("__noinline__")
6*588023ddSArtem Belevich #undef __noinline__
7*588023ddSArtem Belevich #include_next "bits/basic_string.tcc"
8*588023ddSArtem Belevich 
9*588023ddSArtem Belevich #pragma pop_macro("__noinline__")
10