##// END OF EJS Templates
Ajout des règles vera++
perrinel -
r24:31a39fecd50d
parent child
Show More
@@ -0,0 +1,3
1 # On ignore toutes les règles vera++ pour le fichier spimpl
2 Common/spimpl\.h:\d+:.*
3
@@ -0,0 +1,4
1 # On ignore toutes les règles vera++ pour le fichier spimpl
2
3 .*IPSIS_S04_METHOD.*found: Q_DECLARE_LOGGING_CATEGORY.*
4 .*IPSIS_S04_VARIABLE.*found: impl.*
@@ -23,6 +23,9 ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/app")
23 #
23 #
24 # Code formatting
24 # Code formatting
25 #
25 #
26 # Vera++ exclusion files
27 LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/formatting/vera-exclusions/exclusions.txt)
28 SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES)
26 INCLUDE ("cmake/sciqlop_formatting.cmake")
29 INCLUDE ("cmake/sciqlop_formatting.cmake")
27
30
28 #
31 #
@@ -34,6 +34,8 IF (ENABLE_CHECKSTYLE)
34 LIST(APPEND EXCLUSIONS EXCLUSION ${e})
34 LIST(APPEND EXCLUSIONS EXCLUSION ${e})
35 ENDFOREACH()
35 ENDFOREACH()
36
36
37 message("Exclusions de vera++: ${EXCLUSIONS}")
38
37 ADD_VERA_TARGETS(${CHECKSTYLE_INPUT_FILES}
39 ADD_VERA_TARGETS(${CHECKSTYLE_INPUT_FILES}
38 ADD_TO_ALL
40 ADD_TO_ALL
39 PROFILE "sciqlop"
41 PROFILE "sciqlop"
@@ -57,7 +57,7 SCIQLOP_COPY_TO_TARGET(LIBRARY ${SQPCORE_LIBRARY_NAME} ${EXTERN_SHARED_LIBRARIES
57 LIST(APPEND CHECKSTYLE_INPUT_FILES ${MODULE_SOURCES})
57 LIST(APPEND CHECKSTYLE_INPUT_FILES ${MODULE_SOURCES})
58 SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_INPUT_FILES)
58 SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_INPUT_FILES)
59 # Vera++ exclusion files
59 # Vera++ exclusion files
60 #LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/path/to/exclusionFiles.tcl)
60 LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/vera-exclusions/exclusions.txt)
61 SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES)
61 SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES)
62
62
63 #
63 #
@@ -30,7 +30,6
30 #include <memory>
30 #include <memory>
31 #include <type_traits>
31 #include <type_traits>
32
32
33
34 #if defined _MSC_VER && _MSC_VER < 1900 // MS Visual Studio before VS2015
33 #if defined _MSC_VER && _MSC_VER < 1900 // MS Visual Studio before VS2015
35 #define SPIMPL_NO_CPP11_NOEXCEPT
34 #define SPIMPL_NO_CPP11_NOEXCEPT
36 #define SPIMPL_NO_CPP11_CONSTEXPR
35 #define SPIMPL_NO_CPP11_CONSTEXPR
@@ -18,6 +18,7 Q_DECLARE_LOGGING_CATEGORY(LOG_SqpApplication)
18 * method will ba able to access it.
18 * method will ba able to access it.
19 * You can load a data source driver plugin then create a data source.
19 * You can load a data source driver plugin then create a data source.
20 */
20 */
21
21 class SqpApplication : public QApplication {
22 class SqpApplication : public QApplication {
22 Q_OBJECT
23 Q_OBJECT
23 public:
24 public:
@@ -8,10 +8,9 Q_LOGGING_CATEGORY(LOG_SqpApplication, "SqpApplication")
8 class SqpApplication::SqpApplicationPrivate {
8 class SqpApplication::SqpApplicationPrivate {
9 public:
9 public:
10 SqpApplicationPrivate() {}
10 SqpApplicationPrivate() {}
11 ~SqpApplicationPrivate()
11 virtual ~SqpApplicationPrivate()
12 {
12 {
13 qCInfo(LOG_SqpApplication()) << tr("Desctruction du SqpApplicationPrivate");
13 qCInfo(LOG_SqpApplication()) << tr("Desctruction du SqpApplicationPrivate");
14 ;
15 m_DataSourceControllerThread.quit();
14 m_DataSourceControllerThread.quit();
16 m_DataSourceControllerThread.wait();
15 m_DataSourceControllerThread.wait();
17 }
16 }
General Comments 3
Under Review
author

Auto status change to "Under Review"

Approved
author

Status change > Approved

You need to be logged in to leave comments. Login now