TutorialApp::CreateScene() is not found by ccls in the source file but is happily understood within the header. Their are no errors in the logs and I can see the ccls parsed the file after I made the change.
compile_commands.json[ { "directory": "/home/nemsys/Projects/Urho3D_Tutorial/build", "command": "/usr/bin/c++ -DURHO3D_ANGELSCRIPT -DURHO3D_IK -DURHO3D_LOGGING -DURHO3D_LUA -DURHO3D_NAVIGATION -DURHO3D_NETWORK -DURHO3D_PHYSICS -DURHO3D_PROFILING -DURHO3D_STATIC_DEFINE -DURHO3D_THREADING -DURHO3D_URHO2D -DURHO3D_WEBP -I/usr/include/Urho3D/ThirdParty -I/usr/include/Urho3D/ThirdParty/Bullet -I/usr/include/Urho3D/ThirdParty/Lua -I/home/nemsys/Projects/Urho3D_test/include -mtune=generic -std=gnu++11 -Wno-invalid-offsetof -march=native -msse3 -pthread -fdiagnostics-color=auto -g -DDEBUG -D_DEBUG -o CMakeFiles/SampleProject.dir/src/TutorialApp.cpp.o -c /home/nemsys/Projects/Urho3D_test/src/TutorialApp.cpp", "file": "/home/nemsys/Projects/Urho3D_test/src/TutorialApp.cpp" } ]
Hmmm I don't see -DCMAKE_EXPORT_COMPILE_COMMANDS=YES
despite it being setup in cmake. Could be an issue ?
Project builds and runs correctly both through cmake and make.
Private member functions do not appear suitably as completions in their source implementation file.
Public member functions do resolve correctly.
Expected behavior
Declaration TutorialApp::CreateScene() should be available in source file
Observed behavior
TutorialApp::CreateScene() is not found by ccls in the source file but is happily understood within the header. Their are no errors in the logs and I can see the ccls parsed the file after I made the change.
compile_commands.json
[ { "directory": "/home/nemsys/Projects/Urho3D_Tutorial/build", "command": "/usr/bin/c++ -DURHO3D_ANGELSCRIPT -DURHO3D_IK -DURHO3D_LOGGING -DURHO3D_LUA -DURHO3D_NAVIGATION -DURHO3D_NETWORK -DURHO3D_PHYSICS -DURHO3D_PROFILING -DURHO3D_STATIC_DEFINE -DURHO3D_THREADING -DURHO3D_URHO2D -DURHO3D_WEBP -I/usr/include/Urho3D/ThirdParty -I/usr/include/Urho3D/ThirdParty/Bullet -I/usr/include/Urho3D/ThirdParty/Lua -I/home/nemsys/Projects/Urho3D_test/include -mtune=generic -std=gnu++11 -Wno-invalid-offsetof -march=native -msse3 -pthread -fdiagnostics-color=auto -g -DDEBUG -D_DEBUG -o CMakeFiles/SampleProject.dir/src/TutorialApp.cpp.o -c /home/nemsys/Projects/Urho3D_test/src/TutorialApp.cpp", "file": "/home/nemsys/Projects/Urho3D_test/src/TutorialApp.cpp" } ]
Hmmm I don't see -DCMAKE_EXPORT_COMPILE_COMMANDS=YES despite it being setup in cmake. Could be an issue ?Project builds and runs correctly both through cmake and make. Private member functions do not appear suitably as completions in their source implementation file. Public member functions do resolve correctly.
Expected behavior
Declaration TutorialApp::CreateScene() should be available in source file
System information
Editor: spacemacs
dotspacemacs-configuration-layers '( (c-c++ :variables c-c++-backend 'lsp-ccls c-c++-enable-clang-support t c-c++-lsp-enable-semantic-highlight 'rainbow) lsp auto-completion spellcheck