-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Máté Cserép <mcserep@gmail.com>
- Loading branch information
Showing
7 changed files
with
176 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
include "project/common.thrift" | ||
include "project/project.thrift" | ||
|
||
namespace cpp cc.service.cppmetrics | ||
namespace java cc.service.cppmetrics | ||
|
||
enum CppMetricsType | ||
{ | ||
ParameterCount = 1, | ||
McCabe = 2, | ||
LackOfCohesion = 3, | ||
LackOfCohesionHS = 4 | ||
} | ||
|
||
struct CppMetricsTypeName | ||
{ | ||
1:CppMetricsType type, | ||
2:string name | ||
} | ||
|
||
struct CppMetricsAstNode | ||
{ | ||
1:CppMetricsType type, | ||
2:double value | ||
} | ||
|
||
service CppMetricsService | ||
{ | ||
/** | ||
* This function returns the required C++ metric | ||
* for a particular AST node. | ||
*/ | ||
double getSingleCppMetricForAstNode( | ||
1:common.AstNodeId astNodeId, | ||
2:CppMetricsType metric) | ||
|
||
/** | ||
* This function returns all available C++ metrics | ||
* for a particular AST node. | ||
*/ | ||
list<CppMetricsAstNode> getCppMetricsForAstNode( | ||
1:common.AstNodeId astNodeId) | ||
|
||
/** | ||
* This function returns the names of metrics. | ||
*/ | ||
list<CppMetricsTypeName> getCppMetricsTypeNames() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters