Re: [cfe-users] Issue with clang-13

2021-12-24 Thread Csaba Raduly via cfe-users
Hi Sunil, On Fri, 24 Dec 2021 at 14:51, Sunil Kumar via cfe-users wrote: > > Hi, > I tried many times to install clang-13 in ubuntu-16.04. I followed the steps > mentioned below. > > git clone https://github.com/llvm/llvm-project.git > git checkout llvmorg-13.0.0 > cd llvm-project > mkdir build

Re: [cfe-users] Building with Clang (on Windows) - but for Linux

2020-08-26 Thread Csaba Raduly via cfe-users
Hi John, On Wed, 26 Aug 2020 at 10:33, John Emmas via cfe-users wrote: > > BTW - I often see Clang described as "llvm" or "cfe" and I've often > wondered what they stand for ?? Folr LLVM : https://lmgtfy.com/?q=LLVM&pp=1 CFE stands for "C Front-End", a C family (C, C++, Objective C/C++, etc.) l

Re: [cfe-users] Building with Clang (on Windows) - but for Linux

2020-08-25 Thread Csaba Raduly via cfe-users
Hi John, On Tue, 25 Aug 2020 at 17:47, John Emmas via cfe-users wrote: > > Sorry about the confusing subject line!! I use Visual Studio 2019 on > Windows 10 and I've just installed something called WSL (Windows > Subsystem for Linux) which allows it to build apps for Linux. A big > part of this

[cfe-users] Implicit or explicit public inheritance in the AST

2020-06-08 Thread Csaba Raduly via cfe-users
Hi all, If I run `clang++ -std=c++17 -Xclang -ast-dump` on the following code: struct B {}; struct D1 : B {}; struct D2 : public B {}; the output is |-CXXRecordDecl 0x8000bdd48 col:8 referenced struct B definition | |-DefinitionData pass_in_registers empty aggregate standard_layout trivially

Re: [cfe-users] Linking error and memory bloating for .so file creation

2019-03-12 Thread Csaba Raduly via cfe-users
Hi Ankush, On Mon, Mar 11, 2019 at 8:23 PM Ankush Sharma wrote: > During the linking stage for an “.so” file creation, an error message is > being flagged by clang. > > ld: error: dummy.so: write: Function not implemented What was the command line that was used to invoke the linker? What filesyst

Re: [cfe-users] help with linux setup and clang-6

2018-09-01 Thread Csaba Raduly via cfe-users
Hi Milan, On Sat, Sep 1, 2018 at 1:11 AM, Milan Andric via cfe-users wrote: (snip) > > Test program: > > ```test.cpp > #include > int main() > { > std::optional o1; > } > ``` > > Error I am having below. I tried with a few different flags but always with > the same failure. > > ``` > $ clang+

Re: [cfe-users] [cfe-dev] Warnings for implicit constructors and wrong usage of auto

2018-05-16 Thread Csaba Raduly via cfe-users
On 5/16/18, Andrea Arteaga via cfe-users wrote: > Thanks for your reply, John. > > I fully understand your points, I actually had the same concern that a > reference-to-rvalue warning would be issued for perfectly reasonable and > intended code. For example, vector ints{1,2,3,4,5}; auto i = ints

Re: [cfe-users] Command to check the 'linker' used(by clang++) for executable creation on Mac OS

2018-05-09 Thread Csaba Raduly via cfe-users
Hi Vinay, On Tue, May 8, 2018 at 2:41 PM, Vinay Kumar via cfe-users wrote: (snip) > My query is how to confirm(command to check) if my executable is created > using ld.lld linker or ld.gold/some other linker? What is the default linker > 'clang++' uses(command to cross-check) on mac os? > If you

Re: [cfe-users] clang-format option to not break lines at operator ->

2017-06-24 Thread Csaba Raduly via cfe-users
Hi Mikhail, On Thu, Jun 22, 2017 at 11:44 PM, Mikhail Artemyev via cfe-users wrote: > Hi All, > > I am currently trying to beatify a reasonably large code base, and I am > quite surprised about how clang-format breaks long lines where there is a > '->' operator. > > Example: > % cat test.cpp > in

Re: [cfe-users] Bug report: Clang 5.0 (SVN r298093) cannot deduct class template arguments of tuple.

2017-03-30 Thread Csaba Raduly via cfe-users
Hi, Deducing template parameters for constructors is a C++17 feature. You need to pass the -std=c++1z flag to the compiler. On Thu, Mar 30, 2017 at 3:48 AM, 312988...@qq.com via cfe-users wrote: > Hi, all, > > Below cannot be compiled with clang 5.0 (SVN r298093) on Visual Studio 2017. > > #inc

Re: [cfe-users] binary operator

2016-07-13 Thread Csaba Raduly via cfe-users
On Wed, Jul 13, 2016 at 9:30 AM, folkert wrote: >> > When iterating through the AST I encounter BinaryOperator-s, part of an >> > IfStmt. >> > My question now is: how can I find which operator it is? E.g. ==, >=, >> > etc. >> > I'm using libclang. >> > >> >> You can call BinaryOperator::getOpcode,

Re: [cfe-users] binary operator

2016-07-12 Thread Csaba Raduly via cfe-users
Hi Folkert, On Tue, Jul 12, 2016 at 1:46 PM, folkert via cfe-users wrote: > Hi, > > When iterating through the AST I encounter BinaryOperator-s, part of an > IfStmt. > My question now is: how can I find which operator it is? E.g. ==, >=, > etc. > I'm using libclang. > You can call BinaryOperator

Re: [cfe-users] When did Clang provide C++11 mutex?

2016-06-07 Thread Csaba Raduly via cfe-users
Hi Jeffrey, On Mon, Jun 6, 2016 at 12:16 PM, Jeffrey Walton via cfe-users wrote: > I'm having trouble determining feature availability at compile time. > We don't use Autotools and friends; rather, we use the preprocessor. > > I've been through the release notes from 2.8 through 3.5 (form: ), and

Re: [cfe-users] How to detect LLVM Visual Studio Toolset on Windows?

2016-03-13 Thread Csaba Raduly via cfe-users
Hi Jeffrey, Have you tried checking for __clang__ ? On Sun, Mar 13, 2016 at 4:17 AM, Jeffrey Walton via cfe-users wrote: > We took a bug report for LLVM Visual Studio Toolset on Windows. It > appears LLVM defines _MSC_VER but it cannot consume the same programs > that Microsoft's compilers can.