glob is used to generate a list of all files that match the pattern from the
subdir_glob is used to generate a dictionary. The values are the path to each file from the
BUCK file. The keys are the path to each file from the left-hand-side of the pair. You can think of
subdir_glob like a
cd followed by a
│ └── detail
│ └── a.hpp
│ └── b.hpp
│ └── c.hpp
You can add a
BUCK file for debugging.
exported_headers can accept a list or a dictionary. I prefer the dictionary approach because
#include <library/header.hpp> is much cleaner than
To get Clang completion working in your example, you need to add
mathutils/include to the include path. It would definitely be possible to build tooling that reads the Buck targets for code-completion automatically!