[PATCH] D69266: [clangd] Define out-of-line availability checks
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 24 02:55:58 PDT 2019
hokein added inline comments.
================
Comment at: clang-tools-extra/clangd/unittests/TweakTests.cpp:1556
+
+ [[void [[Bar::[[b^a^z]]]]() [[{
+ return;
----------------
Sorry for not spotting it earlier.
Moving out-of-line methods is different than general functions, `void Bar::bar();` is illegal in C++ (C++ requires the out-of-line member declaration must be a definition). I think for this case, we could 1) delete the original method definition 2) disable the tweak. I slightly prefer 2) as out-of-line member definitions are rare in header files. WDYT?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69266/new/
https://reviews.llvm.org/D69266
More information about the cfe-commits
mailing list