Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail when clang FE returned an error #377

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

aobolensk
Copy link
Contributor

@aobolensk aobolensk commented Jan 1, 2024

  • Add check if clang diagnostics engine reported any errors
  • Fix tests that started to fail after clang FE diagnostics checks enabling
  • Add basic tests for handling invalid C++ code by cgeist

@aobolensk aobolensk force-pushed the aobolensk/no-ignore-clang-diag branch from 49999da to 2e3f418 Compare January 1, 2024 08:37
- Add check if clang diagnostics engine reported any errors
- Add basic tests for handling invalid C++ code by cgeist
@aobolensk aobolensk force-pushed the aobolensk/no-ignore-clang-diag branch from 2e3f418 to 603f5a7 Compare January 1, 2024 08:45
@@ -0,0 +1,3 @@
// RUN: not cgeist %s --function=* -S

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this to instead check for failure with // XFAIL: *

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

gpuTriple, gpuDL);
if (!parseMLIR(argv[0], files, cfunction, includeDirs, defines, module,
triple, DL, gpuTriple, gpuDL)) {
llvm::errs() << "parseMLIR failed\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this print and presumably we'll still print the error message from the original clang?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it will be printed. Removed additional parseMLIR failed printing

@aobolensk aobolensk requested a review from wsmoses January 2, 2024 05:51
@wsmoses wsmoses merged commit bc788a0 into llvm:main Jan 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants