Skip to main content

All Questions

Tagged with or
-4 votes
0 answers
81 views

I know the following is undefined behaviour, but I'm wondering why my version of Clang won't compile it at all: class Registry2 {public: template <typename component_t> component_t& ...
Zebrafish's user avatar
  • 16.3k
-2 votes
2 answers
80 views

I've inherited a GitHub job I don't understand well and that has stopped compiling. It creates a .a library for iOS. The source consists of a set of modules, each declared thus: export module x; ...
Imer Satz's user avatar
3 votes
1 answer
119 views

I stumbled upon different behavior of std::filesystem::path::parent_path() when a path contains leading slashes. Clang says that the parent of ///a is /// (which is what I would expect), but GCC says ...
danpla's user avatar
  • 705
5 votes
2 answers
328 views

Problem I'm trying to use clangd for LSP in Neovim with CUDA .cu files, but it fails to recognize standard C++ library features on the host side. Even simple host functions using std::format, std::...
NeKon's user avatar
  • 314
3 votes
2 answers
189 views

I have two functions counting the occurrences of a target char in the given input buffer. The functions vary only in how they communicate the result back to the caller; one returns the result and the ...
Devashish's user avatar
  • 193
Tooling
0 votes
5 replies
96 views

I want to develop a tool that helps in transforming a code like this: #ifdef MYLIB_ENABLE_DEPRECATED_CODE ... some deprecated code ... #endif into: #ifdef MYLIB_ENABLE_DEPRECATED_CODE ...
Hari's user avatar
  • 1,985
0 votes
1 answer
45 views

I'm compiling my program with -g -gcodeview to create the .pdb file info. It does. I'm also linking with: -g -Wl,--pdb= -lDbgHelp However, I get the following and the .pdb file is small - a few Kb. ...
Goblinhack's user avatar
  • 3,156
2 votes
1 answer
114 views

I wrote my "Result" macro header, using C23 and some of the newest features: #pragma once #include <stdio.h> #include <stdlib.h> #define __RESULT_EAT_PARENS(...) __VA_ARGS__ ...
Karesis's user avatar
  • 23
0 votes
1 answer
35 views

Background I am writing a custom, globalISel only, backend for a currently unsupported processor. I have progressed to the point where I can run > clang -target xxx -emit-llvm file.c > llc -...
Aidan Goldfarb's user avatar
0 votes
0 answers
72 views

I have a CMake based Windows library project that only links successfully with the MSVC link.exe due to some obscure third party library dependencies. However, I want to compile the project using the ...
PluginPenguin's user avatar
2 votes
1 answer
140 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
3 votes
0 answers
180 views

While investigating some spurious tests in a x86-64Bit Yocto-based Linux system, that there were multi Byte writes to a register of a PCIe card, instead of an expected single double word write. A ...
arminveres's user avatar
2 votes
1 answer
182 views

How can I get clang or compiler explorer to emit information about its internal calculated branch probabilities for a snippet of C++ code? It's OK if it's in IR at some optimization pass and not in ...
BeeOnRope's user avatar
  • 66.3k
0 votes
2 answers
155 views

Clang's -Wassign-enum diagnostic flag will trigger a warning when using an int whose value is out of scope of an enum's cases: typedef enum Foo { FooA, FooB, } Foo; void handleFoo(Foo foo); ...
an0's user avatar
  • 17.6k
1 vote
1 answer
51 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

15 30 50 per page
1
2 3 4 5
789