We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b7065 commit fb4ad18Copy full SHA for fb4ad18
clang/utils/generate_ast_matcher_doc_tests.py
@@ -446,6 +446,8 @@ def can_code_compile(
446
code_file_name = "code.cpp"
447
if compile_commands and compile_commands.lang_spec.cxx == "":
448
code_file_name = "code.c"
449
+ if compile_commands and "cuda" in compile_commands.lang_spec.raw:
450
+ code_file_name = "code.cu"
451
452
(tmp_path / code_file_name).write_text(code)
453
@@ -601,7 +603,7 @@ def build_test_case(self):
601
603
const StringRef Code = R"cpp(\n{self.code})cpp";\n"""
602
604
605
if has_cuda:
- res += """
606
+ res += f"""
607
const StringRef CudaHeader = R"cuda({cuda_header}
608
)cuda";
609
"""
0 commit comments