26 std::vector<std::string> ret;
28 for (
const auto& line : header_)
30 for (
size_t i = 0; i < content_.size(); i++) {
31 auto line = content_[i];
44 return relative_path_plus_function_name.string().find(pattern) != std::string::npos;
bool contains_given_pattern(const std::string &pattern) const
Checks whether the function contains a pattern.
const std::vector< std::string > & header() const
Gets the function's header content.
const Path & path() const
Gets the function path information.
std::vector< std::string > build_all_content() const
Builds combined content of header and source.
const std::string & name() const
Gets the function name.
const FunctionLocation & scope_location() const
Gets the function location inside the source file.
Represents a logical path to a function in the codebase.
fs::path relative_path() const
Gets the directory portion of the path.
Function representation for a codebase.