Doc: cmake example: fix coding style
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 27 Jun 2016 16:38:35 +0000 (12:38 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 27 Jun 2016 16:43:14 +0000 (12:43 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/cmake-multiple-shared-libraries/README.md
doc/examples/cmake-multiple-shared-libraries/aligner-lib.cpp
doc/examples/cmake-multiple-shared-libraries/aligner-lib.h
doc/examples/cmake-multiple-shared-libraries/aligner.cpp
doc/examples/cmake-multiple-shared-libraries/tester-lib.cpp
doc/examples/cmake-multiple-shared-libraries/tester-lib.h
doc/examples/cmake-multiple-shared-libraries/tester.cpp
doc/examples/cmake-multiple-shared-libraries/tracepoint-provider.h

index 8b58246e700255ec21e1e007ba9878c50b6802e9..fc97a2699bc7272b5f30aa63f88c669d092fe6ef 100644 (file)
@@ -47,6 +47,6 @@ cat trace.txt
 The content of trace.txt should be:
 
 ```
-[21:45:34.940246019] (+?.?????????) osiris gydle_om:alignQuery: { cpu_id = 2 }, { queryName = "moleculeX" }
-[21:45:34.940263188] (+0.000017169) osiris gydle_om:testAlignment: { cpu_id = 2 }, { alignment = "my-alignment" }
+[21:45:34.940246019] (+?.?????????) osiris gydle_om:align_query: { cpu_id = 2 }, { query_name = "moleculeX" }
+[21:45:34.940263188] (+0.000017169) osiris gydle_om:test_alignment: { cpu_id = 2 }, { alignment = "my-alignment" }
 ```
index 946e5e3acf3527d841076504a417830898057403..77011665a1f018d7f240fccc2958c355956a5f14 100644 (file)
@@ -25,9 +25,9 @@
 #include "aligner-lib.h"
 #include "tracepoint-provider.h"
 
-void alignQuery(const std::string & queryName)
+void align_query(const std::string &query_name)
 {
-       tracepoint(gydle_om, alignQuery, queryName.c_str());
+       tracepoint(gydle_om, align_query, query_name.c_str());
 
        /* Do the actual alignment */
        /* ... */
index d3b40c5642621de32833fe0445dad620128e988c..16fb4fc8dd6b13574c5f17d702bc7d542c607cad 100644 (file)
@@ -25,6 +25,6 @@
 
 #include <string>
 
-void alignQuery(const std::string & queryName);
+void align_query(const std::string &queryName);
 
 #endif
index 19adfcee2445b5b46094418a24353a38d9a4ad9a..d69336866768c9fcd3e334212e6b7d816f0c5699 100644 (file)
@@ -24,7 +24,7 @@
 
 int main(int argc, char **argv)
 {
-       alignQuery("molecule-foo");
+       align_query("molecule-foo");
 
        return 0;
 }
index 8fb90a0767844be5b18a0769a5eb4478ea3a676e..bc893ccf11f2bb2e76034d51138eb0e1a1d436be 100644 (file)
@@ -25,7 +25,7 @@
 #include "tester-lib.h"
 #include "tracepoint-provider.h"
 
-void testAlignment(const std::string & alignment)
+void test_alignment(const std::string &alignment)
 {
-       tracepoint(gydle_om, testAlignment, alignment.c_str());
+       tracepoint(gydle_om, test_alignment, alignment.c_str());
 }
index 994fa00d697ebe3713998a4cc49e4b5a96ee2398..764d7d36baddb518bb77b065c706256c565240c5 100644 (file)
@@ -25,6 +25,6 @@
 
 #include <string>
 
-void testAlignment(const std::string & alignment);
+void test_alignment(const std::string &alignment);
 
 #endif
index 6bc486df880952e98a67e3c396b9c9d25b8ff70b..8368c9326bb36f8360fb79e1130fdb4af5fd4230 100644 (file)
 int main(int argc, char **argv)
 {
        /* Generate alignment */
-       alignQuery("moleculeX");
+       align_query("moleculeX");
 
        /* Test alignment */
-       testAlignment("my-alignment");
+       test_alignment("my-alignment");
 
        return 0;
 }
index 301f35716a3934b0549aa4ff83abe2c350346eb1..5c5c480e2f3ca791a61540b41fbeaba0bbdeaf39 100644 (file)
 
 TRACEPOINT_EVENT(
        TRACEPOINT_PROVIDER,
-       alignQuery,
+       align_query,
        TP_ARGS(
-               const char*, queryName
+               const char *, query_name
        ),
        TP_FIELDS(
-               ctf_string(queryName, queryName)
+               ctf_string(query_name, query_name)
        )
 )
 
 TRACEPOINT_EVENT(
        TRACEPOINT_PROVIDER,
-       testAlignment,
+       test_alignment,
        TP_ARGS(
-               const char*, alignment
+               const char *, alignment
        ),
        TP_FIELDS(
                ctf_string(alignment, alignment)
        )
 )
 
-
-
 #endif /* MY_TRACEPOINT_PROVIDER_H */
 
 #include <lttng/tracepoint-event.h>
This page took 0.028785 seconds and 4 git commands to generate.