We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe I'm doing something wrong, but I don't see what that might be. :-/
Simple test:
/tmp/include/test/inc.hpp
#pragma once #include <vector> #include <string_view> namespace test { std::vector<char> from_hex(const std::string_view& in); }
/tmp/src/test/hex.cpp
#include <test/inc.hpp> namespace test { std::vector<char> from_hex(const std::string_view& in) { std::vector<char> result; result.reserve(in.size() / 2 + 1); return result; } }
g++ --std=c++17 -Wall -I /tmp/include/ -c -o /tmp/src/test/hex.o /tmp/src/test/hex.cpp
cppclean --include-path=/tmp/include /tmp/src/
/tmp/src/test/hex.cpp:4: 'from_hex' not found in any directly #included header
What am I missing?
The text was updated successfully, but these errors were encountered:
I ran into the same problem. I found that it was caused by including with angle-brackets instead of double quotes. I found two solutions:
#include <mylib/my_file.hpp>
#include "mylib/my_file.hpp"
--include-path-non-system
cppclean --include-path-non-system=/tmp/include /tmp/src/
Sorry, something went wrong.
Thanks. I think at the very least the error message is misleading.
No branches or pull requests
Maybe I'm doing something wrong, but I don't see what that might be. :-/
Simple test:
/tmp/include/test/inc.hpp
with this:/tmp/src/test/hex.cpp
with this:g++ --std=c++17 -Wall -I /tmp/include/ -c -o /tmp/src/test/hex.o /tmp/src/test/hex.cpp
works without warningscppclean --include-path=/tmp/include /tmp/src/
complainsWhat am I missing?
The text was updated successfully, but these errors were encountered: