[PATCH] D126498: [clangd] Fix hover crashing on integral or enumeral casts
Georg Kotheimer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 1 00:56:10 PDT 2022
gkll marked 2 inline comments as done.
gkll added a comment.
Thank you, and sorry for the chaos, this is my first submission to llvm :D
================
Comment at: clang-tools-extra/clangd/unittests/HoverTests.cpp:3221
+ TestTU TU = TestTU::withCode(T.code());
+ TU.OmitPredefinedMacros = false;
+ auto AST = TU.build();
----------------
sammccall wrote:
> As an alternative (just to avoid adding this option), I think adding "-target=x86_64-pc-linux-gnu" would force intptr_t to be long.
> Up to you.
I prefer using the predefine.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126498/new/
https://reviews.llvm.org/D126498
More information about the cfe-commits
mailing list