Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
Clang-bugs-at-wip-clang-branch
Jump to navigation
Jump to search
See also
- ClangCodeModel plugin has class CXPrettyPrinter that prints clang-c types in JSON-like format. Use it to debug and feel free to improve this class.
- Clang hacking notes
Clang bugs with known workarounds
- Sometimes diagnostic message have one empty SourceRange, which breaks SourceLocation-based euristic. Example:
CXPrettyPrinter reports:
Clang bugs
Links to reported bugs will be attached in future
- inside lambda, clang doesn’t include mutable (non-const) methods of current class even if ‘this’ was captured by lambda
Bug: http://llvm.org/bugs/show_bug.cgi?id=15085
See example, completion requested in point marked with ‘#’ sign
- Clang does not add virtual functions to proposals list
- no way to differ method definition and call with qualifier: completion strings and contexts are the same in both cases: http://llvm.org/bugs/show_bug.cgi?id=15745
Poor diagnostic for such code if C++11 disabled
- clang does not add classes to completion proposals when completing ‘foreach’
- when declaring variable, variable itself proposed with highest priority. It’s error.
- Macro completions not added after class keyword
- Wrong completions inside function-try-block in constructor: http://llvm.org/bugs/show_bug.cgi?id=15660
- Completion with nested names lookup not performed for comparison with enum value
- Value types completions added where thay shouldn’t be
- C++11 ‘override’ pseudo-keyword breaks clang_annotateTokens()
- Poor completion context recognition in template params
- Clang doesn’t add Informative completion chunk to macro. It better to add macro definition text to informative.
- Completion stops after asterisk:
- Macro trick used in GLEW library not handled by completion: http://llvm.org/bugs/show_bug.cgi?id=15631
- Completion results for function with optional arguments does not have default argument value: http://llvm.org/bugs/show_bug.cgi?id=14477