File tree Expand file tree Collapse file tree 2 files changed +42
-14
lines changed Expand file tree Collapse file tree 2 files changed +42
-14
lines changed Original file line number Diff line number Diff line change
1
+ name : " CI: autotools: clang 10"
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+
8
+ runs-on : ubuntu-latest
9
+ container : ubuntu:20.04
10
+
11
+ steps :
12
+ - uses : actions/checkout@v1
13
+ - name : Build
14
+ run : |
15
+ # Prevent blocking the install on a question during configuring of tzdata.
16
+ export ENV DEBIAN_FRONTEND=noninteractive
17
+ apt update
18
+ apt install build-essential mm-common clang-10 --yes
19
+ export CXX=clang++-10
20
+ ./autogen.sh --enable-warnings=fatal
21
+ make
22
+ - name : Test
23
+ run : make check
24
+ - name : Distcheck
25
+ run : |
26
+ # distcheck runs configure again so we need to specify CXX again.
27
+ export CXX=clang++-10
28
+ make distcheck
Original file line number Diff line number Diff line change 9
9
10
10
class ExampleClass : public QObject
11
11
{
12
- Q_OBJECT
12
+ Q_OBJECT
13
13
public:
14
- explicit ExampleClass (QObject * parent = nullptr );
14
+ explicit ExampleClass (QObject* parent = nullptr );
15
15
16
- /* Instead of using the keyword 'signals', use the 'Q_SIGNALS' macro */
16
+ /* Instead of using the keyword 'signals', use the 'Q_SIGNALS' macro */
17
17
Q_SIGNALS:
18
- void example_signal ();
18
+ void example_signal ();
19
19
20
- /* Instead of using the keyword 'slots', use the 'Q_SLOTS' macro */
20
+ /* Instead of using the keyword 'slots', use the 'Q_SLOTS' macro */
21
21
public Q_SLOTS:
22
- void timer_slot ();
22
+ void timer_slot ();
23
23
24
- /* *
25
- * This slot is called using libsigc++, however since it is defined under Q_SLOTS
26
- * it could also be used with the Qt signals/slots
27
- */
28
- void example_slot ();
24
+ /* *
25
+ * This slot is called using libsigc++, however since it is defined under Q_SLOTS
26
+ * it could also be used with the Qt signals/slots
27
+ */
28
+ void example_slot ();
29
29
30
30
private:
31
- sigc::slot<void ()> m_sigc_slot;
32
- sigc::signal<void ()> m_sigc_signal;
33
- QTimer m_timer;
31
+ sigc::slot<void ()> m_sigc_slot;
32
+ sigc::signal<void ()> m_sigc_signal;
33
+ QTimer m_timer;
34
34
};
35
35
36
36
#endif // EXAMPLECLASS_H
You can’t perform that action at this time.
0 commit comments