Skip to main content
0 votes
0 answers
63 views

On windows, using check_ipo_supported CMake function gives the following results: compiler generator check_ipo_supported msvc NMake Makefiles TRUE g++ (from MSYS2) MinGW Makefiles TRUE clang++ (from ...
Oersted's user avatar
  • 3,834
2 votes
1 answer
143 views

Recently i've been working on some project with GNU arm compiler for C++ project. I've configured clangd to use this compiler with query-driver as clangd documentation recommends. The problem is ...
aleks's user avatar
  • 107
1 vote
1 answer
52 views

I am learning to work with the clang AST while developing a refactoring tool. I'm using a clang::ast_matchers::dynamic::DynTypedMatcher created using the clang::ast_matchers::dynamic::Parser::...
Kristen777's user avatar
-5 votes
1 answer
208 views

I have an existing c++ project that compiles fine with msvc, and I'm trying to get it to compile in Visual Studio 2022 with LLVM (clang-cl). At the moment I'm using C++ Language Standard Preview ISO C+...
dts's user avatar
  • 223
2 votes
3 answers
239 views

When compiling my program using a recent version of OpenVDB library by Clang in C++20 mode, I get the error: error: use of the 'assume' attribute is a C++23 extension I see that it is due to the ...
Fedor's user avatar
  • 24.7k
14 votes
2 answers
324 views

Consider this simple code. struct Foo { template <typename T> struct Bar { ~Bar(); }; }; with the out-of-line implementation template <typename T> Foo::Bar<T>::~...
Jody Hagins's user avatar
  • 28.6k
1 vote
1 answer
107 views

I’m working on a legacy C++ codebase that ships with its own Clang 16 inside a thirdparty/llvm-build-16 folder. On our new Ubuntu 22.04 build system, this bundled compiler fails to run because it ...
aniket's user avatar
  • 21
3 votes
1 answer
114 views

On my Apple M2 (ARM64-apple-darwin) I have the following C++ code stored in the file hello_world.cpp in some directory called code. I want to be able to compile it using both Clang and GCC, but ...
davidtschan's user avatar
0 votes
0 answers
34 views

In my own "native" Python module I declare a new type this way: PyTypeObject calculatorType = { PyVarObject_HEAD_INIT(NULL, 0) .tp_name = "My.Calculator", .tp_basicsize ...
Mikhail T.'s user avatar
  • 4,266
2 votes
1 answer
109 views

MSVC has a very useful flag /SOURCELINK. This allows you to tell where in your versioning system the sources are stored, such that they can be downloaded. For example: (Also holds for C++) { "...
JVApen's user avatar
  • 11.5k
5 votes
2 answers
161 views

I am porting a large codebase from Linux/g++ to MacOS/Clang. I hit this compiler error in multiple places in Clang (where g++ builds successfully and does the right thing at run time): error: ...
barnabas's user avatar
  • 157
0 votes
1 answer
191 views

The clang compiler shipping with Xcode 26 does not support sized deallocation: void* p = operator new(100); // [...] operator delete(p, 100); // error: no matching function for call to 'operator ...
Tobi's user avatar
  • 2,809
1 vote
0 answers
39 views

The design document for Hardware-assisted AddressSanitizer does not document whether or not runtime suppressions are possible using the HWASAN_OPTIONS environment variable. Assuming a program compiled ...
Dalzhim's user avatar
  • 2,098
0 votes
1 answer
241 views

I am developing a mobile app in .NET Maui with .NET 8.0 for both Android and iOS using the latest Release of Visual Studio 2022 and a Windows PC. Everything worked very well until this week. I can no ...
BeRo's user avatar
  • 194
2 votes
2 answers
114 views

I noticed that the following program optimizes to no instructions at all on recent versions of clang, with -ffast-math and -O1 and higher: #include <cassert> #include <limits> int main() {...
Alexander Torstling's user avatar

15 30 50 per page
1
2 3 4 5
142