[kdevelop] [Bug 426335] kdevelop symantic analysis opencl only partially working

2020-09-26 Thread Aaron Puchert
https://bugs.kde.org/show_bug.cgi?id=426335

--- Comment #4 from Aaron Puchert  ---
(In reply to Aaron Puchert from comment #3)
> Or we use -fdeclare-opencl-builtins. (https://reviews.llvm.org/D60763)
Maybe not for now though, the flag is still considered experimental (you have
to prefix it with -Xclang). It worked for me, but maybe it's not
production-ready.

There was a proposal to include the builtin header by default, but it got
stalled because of this apparently. (https://reviews.llvm.org/D78979)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 426335] kdevelop symantic analysis opencl only partially working

2020-09-26 Thread Aaron Puchert
https://bugs.kde.org/show_bug.cgi?id=426335

Aaron Puchert  changed:

   What|Removed |Added

 CC||aaronpuch...@alice-dsl.net

--- Comment #3 from Aaron Puchert  ---
Or we use -fdeclare-opencl-builtins. (https://reviews.llvm.org/D60763)

Supposedly the header takes very long to parse and this flag uses builtin
declarations instead. Apparently one still has to include opencl-c-base.h
though.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 426335] kdevelop symantic analysis opencl only partially working

2020-09-09 Thread Francis Herne
https://bugs.kde.org/show_bug.cgi?id=426335

Francis Herne  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 CC||m...@flherne.uk
  Component|Analyzer: Clang-Tidy|Language Support: CPP
   ||(Clang-based)
 Status|REPORTED|CONFIRMED

--- Comment #2 from Francis Herne  ---
The same errors are reported when calling `clang -cl-std=CL1.2 file.cl`.


Adding `-include /usr/lib/clang/10.0.1/include/opencl-c.h` to the command
resolves them, and jpsollie reports that adding this same header to 'Custom
Defines/Includes' makes KDevelop work.

We should probably include this automatically when parsing CL files in
KDevelop.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 426335] kdevelop symantic analysis opencl only partially working

2020-09-09 Thread jpsollie
https://bugs.kde.org/show_bug.cgi?id=426335

--- Comment #1 from jpsollie  ---
Created attachment 131508
  --> https://bugs.kde.org/attachment.cgi?id=131508=edit
cl code described in bug (mimal)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 426335] kdevelop symantic analysis opencl only partially working

2020-09-09 Thread jpsollie
https://bugs.kde.org/show_bug.cgi?id=426335

jpsollie  changed:

   What|Removed |Added

   Platform|Other   |Gentoo Packages

-- 
You are receiving this mail because:
You are watching all bug changes.