##// END OF EJS Templates
Adds name to a graph...
Adds name to a graph - The name is passed as a parameter in the ctor - It is used as a title of the graph and will also be used to be displayed in menus related to a variable

File last commit:

r2:451739a45362
r196:8ddc77b998a0
Show More
IPSIS_S04_FILENAME.tcl
13 lines | 479 B | application/x-tcl | TclLexer
#!/usr/bin/tclsh
# Naming conventions for file names
set fileNameRegex [getParameter "filename-regex" {^[A-Z]\w*$}]
foreach fileName [getSourceFileNames] {
# Check file name
if {[regexp {(?:\\|/)?([^\\/]+?)\.(?:h|cpp)$} $fileName matchedExpr fileNameWithoutExt]} {
if {![regexp $fileNameRegex $fileNameWithoutExt]} {
report $fileName 1 "The file names should match the following regex: $fileNameRegex (found: $fileNameWithoutExt)"
}
}
}