20static constexpr uint32_t INVALID_LINE = std::numeric_limits<uint32_t>::max();
25 uint32_t
end{INVALID_LINE};
28 constexpr uint32_t
size() const noexcept {
52 std::vector<std::string> content_;
53 std::vector<std::string> header_;
76 const std::string&
name()
const;
89 const std::vector<std::string>&
header()
const;
Represents a function extracted from a codebase.
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.
Logical path abstraction for source code elements.
uint32_t end
Line number where function ends.
uint32_t declaration
Line number of function declaration.
uint32_t begin
Line number where function starts.
constexpr uint32_t size() const noexcept