Skip to content

struct code definition have no type DEFINES_METHOD #195

@hgcdanniel

Description

@hgcdanniel

hi,

I found that some function declarations were missing function definitions.
as : cmDebuggerExceptionFilter is defined by cmDebuggerExceptionManager.h
I use https://github.com/Kitware/CMake/tree/master/Source as test demo:

wrong case:
code is CMake/Source/cmDebuggerExceptionManager.h
class is cmDebuggerExceptionFilter

 32 struct cmDebuggerExceptionFilter
 33 {
 34   std::string Filter;
 35   std::string Label;
 36 };

The definition of other methods for the class cannot be found; only the definition of the class in the .h file can be found.
graph is:

  {
      "from_id": 208237,
      "to_id": 207803,
      "type": "DEFINES",
      "properties": {}
    },

{
      "node_id": 207803,
      "labels": [
        "Class"
      ],
      "properties": {
        "decorators": [],
        "end_line": 36,
        "is_exported": false,
        "name": "cmDebuggerExceptionFilter",
        "qualified_name": "Source.cmDebuggerExceptionManager.cmDebugger.cmDebuggerExceptionFilter",
        "start_line": 32
      }
    },

correct case:

can find node 206903 is 206985 DEFINES_METHOD
struct definition Context is method Context DEFINES_METHOD
CMake/Source/cmGenExContext.h


code is:
 11 class cmLocalGenerator;
 12
 13 namespace cm {
 14 namespace GenEx {
 15
 16 struct Context final
 17 {
 18   Context(cmLocalGenerator const* lg, std::string config,
 19           std::string language = std::string());
 20
 21   cmLocalGenerator const* LG;
 22   std::string Config;
 23   std::string Language;
 24
 25   void SetCMP0189(cmPolicies::PolicyStatus cmp0189);
 26   cmPolicies::PolicyStatus GetCMP0189() const;
 27
 28 private:
 29   cm::optional<cmPolicies::PolicyStatus> CMP0189;
 30 };
 31
 32 }
 33 }
~

 {
      "from_id": 206903,
      "to_id": 206985,
      "type": "DEFINES_METHOD",
      "properties": {}
    },

 {
      "node_id": 206903,
      "labels": [
        "Class"
      ],
      "properties": {
        "decorators": [],
        "end_line": 30,
        "is_exported": false,
        "name": "Context",
        "qualified_name": "Source.cmGenExContext.cm.GenEx.Context",
        "start_line": 16
      }
    },
 {
      "node_id": 206985,
      "labels": [
        "Method"
      ],
      "properties": {
        "decorators": [],
        "end_line": 19,
        "name": "Context",
        "qualified_name": "Source.cmGenExContext.cm.GenEx.Context.Context",
        "start_line": 18
      }
    },


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions