##// END OF EJS Templates
Defines actions for a data source items...
Defines actions for a data source items DataSourceItemAction is an object that will be connected to a QAction. When the QAction will be triggered, the DataSourceItemAction will be executed

File last commit:

r2:451739a45362
r144:7a9a79ed3b02
Show More
IPSIS_S04_FILENAME.tcl
13 lines | 479 B | application/x-tcl | TclLexer
Ajout de vera++
r2 #!/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)"
}
}
}