Questions tagged [clang]
39 questions
23
votes
3 answers
Why does clang generate unintelligible text when redirected?
I am trying to save the output of a command to a file. The command is:
clang -Xclang -ast-dump -fsyntax-only main.cpp > output.txt
However the resulting output.txt file when opened (by gedit and jedit on ubuntu) gives me…
abzullah
- 347
11
votes
2 answers
How to install clangd (not clang) on mac os
I installed xcode, llvm, brew, and I have clang on my system but not clangd ..., I googled around and only find how install clang not clangd.
I tried brew install clangd but not found clangd. I even tried to go through the docs of llvm and still…
shelper
- 657
10
votes
5 answers
How to install clang-format on MinGW (Windows)?
I tried searching with pacman -Ss for clang-format, git-clang-format, etc, but I'm not having any luck.
However, I have seen some references to it on some other websites, implying it may exist (or have existed) somewhere.
Tyler Shellberg
- 315
9
votes
2 answers
Which binary clang version I should use for CentOS
Based on
http://llvm.org/releases/download.html
Clang Binaries for FreeBSD9/x86_64 (69M)(.sig)
Clang Binaries for Ubuntu-12.04/x86 (67M)(.sig)
Clang Binaries for Ubuntu-12.04/x86_64 (71M)(.sig)
My OS is CentOS 6.3 Gnome Desktop x86…
q0987
- 976
8
votes
0 answers
Change compile flags for Homebrew
We're building a large C++ application on OS X Yosemite 10.10. This application relies on a number of third-party libraries which we install using Homebrew prior to building our application. Our release script picks up all the dependencies and…
François Beaune
- 111
6
votes
1 answer
How do I install Clang 4.0 on Ubuntu 14.04?
I need to install Clang 4.0 and Clang++ 4.0 on my Ubuntu 14.04 box. The most recent version I can find in the apt-get package list is 3.5. How do I install 4.0?
Robert Oschler
- 321
4
votes
1 answer
Install a deleted homebrew formulae
Recently, homebrew decided to remove clang-omp from the list of formulae available to install from. Is there any way to retrieve it? Or would I have to download and build clang-omp bit manually?
coatless
- 171
3
votes
1 answer
Does a better/newer C or C++ compiler produce more performant compiled code? Or do they just perform faster/better while compiling?
I am not a C or C++ programmer myself, but I often use software that needs to be compiled or otherwise depends on a compiler, like some R packages.
Will that software actually perform better if I use a newer/better compiler? For instance, right now…
shadowtalker
- 386
3
votes
2 answers
Clang can't locate Homebrew-installed libportaudio
I installed libportaudio using Homebrew on OS X. The install succeeded and I verified there were symlinks to the actual headers and libraries in /usr/local/include and /usr/local/lib.
However, I am now trying to make a Rustlang binding…
GolDDranks
- 173
3
votes
1 answer
install LLVM 9 wiht WSL Ubuntu
I am trying to install the last stable version with the script in the page:
https://apt.llvm.org/
However I have the following error:
Reading package lists... Done
+ apt-get install -y clang-9 lldb-9 lld-9 clangd-9
Reading package lists...…
Mac Fly
- 131
2
votes
1 answer
Are clang and llvm no longer maintained in cygwin?
I cannot find binaries for clang or llvm using cygwin's setup.exe. Are they no longer maintained?
Nevermoe
- 121
2
votes
1 answer
cmath compilation errors with clang-10 on Mac OS Catalina
I recently installed llvm via brew with brew install llvm, in order to use clang with OpenMP, on Mac OS 10.15.4 Catalina
$ which clang
/usr/local/opt/llvm/bin/clang
$ clang -v
clang version 10.0.0
Target: x86_64-apple-darwin19.4.0
Thread model:…
EB2127
- 123
2
votes
1 answer
cmake error encountered when build clang-query
I encountered the following error when I was trying to build clang-query.
parallels@ubuntu18:~/myllvm/llvm/tools/clang/tools/extra/clang-query$ cmake .
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
--…
isPrime
- 21
2
votes
0 answers
Custom-defined type highlighting in Sublime Text
I am looking for a configuration/combination of plugins + clang (or any other parser) that can allow sublime text to highlight all custom defined types just like it highlights native types such as int, double, char, etc. More specifically I guess…
niko
- 428
1
vote
1 answer
How to update the Clang compiler from version 3.1 to version 3.4 in Debian Linux?
It is as what the question is saying, I am new on Linux. I need the Clang++ compiler update to version 3.4 for the assignment that I need to do. I simply just typed in Terminal
sudo apt-get install clang++
this command only install/update my…
user3595342
- 11