ccls icon indicating copy to clipboard operation
ccls copied to clipboard

C++20 Modules support

Open DarkStar1997 opened this issue 4 years ago • 5 comments

Is it possible to implement completions for C++20 modules? The major compilers seem to have support for it.

DarkStar1997 avatar May 17 '21 15:05 DarkStar1997

Please!!, I'm getting errors all the time for not found modules

alvarogalloc avatar Jun 08 '21 05:06 alvarogalloc

Please!!, I'm getting errors all the time for not found modules

as far as I konw, clang not implement modules yet

if the code can be compile by clang, it`s a bug.

https://en.cppreference.com/w/cpp/compiler_support/20

findNextStep avatar Jun 08 '21 05:06 findNextStep

from clang 7 to trunk(13.0.0) the modules have been around with special args for the cli

alvarogalloc avatar Jun 08 '21 12:06 alvarogalloc

gcc 11 also started to add support for C++20 module, also with cli args.

zcorniere avatar Aug 03 '21 08:08 zcorniere

I have the same question. I'm working through the book 'Professional C++' and getting errors with the Hello World example which uses import instead of #include.

import <iostream>; int main(){ std::cout << "Hello World!" << std::endl; return 0; }

I'm using the llvm clang++ on Mac OS.

andychess avatar Jan 14 '23 12:01 andychess