[PATCH] D149236: [clangd] Bail gracefully if given an assembly or IR source file
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 25 23:26:47 PDT 2023
nridge added inline comments.
================
Comment at: clang-tools-extra/clangd/unittests/ParsedASTTests.cpp:859
+ // The rest is a simplified version of TestTU::build().
+ // Don't call TestTU::build() itself because it would assert on
+ // failure to build an AST.
----------------
(I could alternatively give `TestTU::build()` an option to expect failure to build an AST.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149236/new/
https://reviews.llvm.org/D149236
More information about the cfe-commits
mailing list