]> sigrok.org Git - pulseview.git/commitdiff
Consistenty use auto-generated namespace comments.
authorUwe Hermann <redacted>
Wed, 22 Mar 2017 22:34:36 +0000 (23:34 +0100)
committerUwe Hermann <redacted>
Thu, 23 Mar 2017 18:42:18 +0000 (19:42 +0100)
This patch was generated using clang-tidy:

  clang-tidy -checks="-*,google-readability-namespace-comments" -fix

Switch to the format used by clang-tidy to allow easy, automatic,
tool-based maintenance / checking of the comments.

This also found a few instances of comments that were out of sync.

56 files changed:
pv/binding/binding.cpp
pv/binding/binding.hpp
pv/binding/decoder.cpp
pv/binding/decoder.hpp
pv/binding/device.cpp
pv/binding/device.hpp
pv/binding/inputoutput.hpp
pv/data/decode/decoder.cpp
pv/data/decode/row.cpp
pv/data/decode/row.hpp
pv/data/decode/rowdata.cpp
pv/data/decode/rowdata.hpp
pv/data/segment.hpp
pv/dialogs/storeprogress.cpp
pv/dialogs/storeprogress.hpp
pv/popups/channels.cpp
pv/popups/channels.hpp
pv/prop/bool.cpp
pv/prop/bool.hpp
pv/prop/double.cpp
pv/prop/double.hpp
pv/prop/enum.cpp
pv/prop/enum.hpp
pv/prop/int.cpp
pv/prop/int.hpp
pv/prop/property.cpp
pv/prop/property.hpp
pv/prop/string.cpp
pv/prop/string.hpp
pv/session.hpp
pv/storesession.cpp
pv/storesession.hpp
pv/views/viewbase.cpp
pv/widgets/colourbutton.cpp
pv/widgets/colourbutton.hpp
pv/widgets/colourpopup.cpp
pv/widgets/colourpopup.hpp
pv/widgets/decodergroupbox.cpp
pv/widgets/decodergroupbox.hpp
pv/widgets/decodermenu.cpp
pv/widgets/decodermenu.hpp
pv/widgets/devicetoolbutton.cpp
pv/widgets/devicetoolbutton.hpp
pv/widgets/exportmenu.cpp
pv/widgets/exportmenu.hpp
pv/widgets/importmenu.cpp
pv/widgets/importmenu.hpp
pv/widgets/popuptoolbutton.cpp
pv/widgets/popuptoolbutton.hpp
pv/widgets/sweeptimingwidget.cpp
pv/widgets/sweeptimingwidget.hpp
pv/widgets/timestampspinbox.cpp
pv/widgets/timestampspinbox.hpp
pv/widgets/wellarray.cpp
pv/widgets/wellarray.hpp
test/util.cpp

index 79ce90a3e7eed7b1e6f4548a838e850e80c0edd5..00399c1db212ced92570957d45a3e0e984adf73d 100644 (file)
@@ -88,5 +88,5 @@ QString Binding::print_gvariant(Glib::VariantBase gvar)
        return s;
 }
 
-} // binding
-} // pv
+}  // namespace binding
+}  // namespace pv
index aed8c34ca4f95c5073ea54d1cfd1d43d6376dfc9..c4b1e9ddfd6d59ab2bb614b7fb19b154a085e9fe 100644 (file)
@@ -64,7 +64,7 @@ protected:
        vector< shared_ptr<prop::Property> > properties_;
 };
 
-} // binding
-} // pv
+}  // namespace binding
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_BINDING_BINDING_HPP
index b968ab7995e31227780169b65d4bb2a95b1397ff..39bff52bf0cb55f3ee29aba01995a275769ab2c4 100644 (file)
@@ -140,5 +140,5 @@ void Decoder::setter(const char *id, Glib::VariantBase value)
        decoder_stack_->begin_decode();
 }
 
-} // binding
-} // pv
+}  // namespace binding
+}  // namespace pv
index 0e93cffee8ddc9b284222f036cb9174b1f7746d7..044c0f652dcd7eab29dc9bb7a655da49171cbd03 100644 (file)
@@ -59,7 +59,7 @@ private:
        shared_ptr<pv::data::decode::Decoder> decoder_;
 };
 
-} // binding
-} // pv
+}  // namespace binding
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_BINDING_DECODER_HPP
index 845708e59626f3dea41fdbc183c7424ef0f87ccf..3ebc9f9f41839b67d0d6fac1b8cb4d26f7b5ff33 100644 (file)
@@ -201,5 +201,5 @@ QString Device::print_probe_factor(Glib::VariantBase gvar)
        return QString("%1x").arg(factor);
 }
 
-} // binding
-} // pv
+}  // namespace binding
+}  // namespace pv
index cd835f2993a4c246ed49b3e6a047eafd95f44eb1..4c4d6f44dcf5ab8d3d678d7f78229b0e9b9ee5c4 100644 (file)
@@ -71,7 +71,7 @@ protected:
        shared_ptr<sigrok::Configurable> configurable_;
 };
 
-} // binding
-} // pv
+}  // namespace binding
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_BINDING_DEVICE_HPP
index 3c64781f2ffa17ecd8f2f8f1979f0696e0b72686..7aa90a16f9e7fe37e0125c493cd1c75f8da28483 100644 (file)
@@ -77,7 +77,7 @@ private:
        map<string, Glib::VariantBase> options_;
 };
 
-} // binding
-} // pv
+}  // namespace binding
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_BINDING_INPUTOUTPUT_H
index d3ee3459255ebc1ff3246fcda2d6a61b53859e56..d7ec5e11bc3525102d073b7d171fb5be6f478d2c 100644 (file)
@@ -145,6 +145,6 @@ srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session) const
        return decoder_inst;
 }
 
-} // decode
-} // data
-} // pv
+}  // namespace decode
+}  // namespace data
+}  // namespace pv
index 43ef91e6fc4ad39736e6a555f2582acfecaf95cb..1266b8436e1e09934b92418b62e5a6ebc42e7728 100644 (file)
@@ -66,6 +66,6 @@ bool Row::operator<(const Row &other) const
                (decoder_ == other.decoder_ && row_ < other.row_);
 }
 
-} // decode
-} // data
-} // pv
+}  // namespace decode
+}  // namespace data
+}  // namespace pv
index 8105887450fcab824772fb050eb43da150e40ca8..5ddd10d3318fb2b0c9e0d399fa8b83915164d45f 100644 (file)
@@ -51,8 +51,8 @@ private:
        const srd_decoder_annotation_row *row_;
 };
 
-} // decode
-} // data
-} // pv
+}  // namespace decode
+}  // namespace data
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_DATA_DECODE_ROW_HPP
index af1fc449ac35924dac9796c7f14f0ca37f49f137..02859b2790a5b10f7979653ccc1ff41f8000e84c 100644 (file)
@@ -47,6 +47,6 @@ void RowData::push_annotation(const Annotation &a)
        annotations_.push_back(a);
 }
 
-} // decode
-} // data
-} // pv
+}  // namespace decode
+}  // namespace data
+}  // namespace pv
index 21543c5c1141a9e95ecbd9513d90a6145f21d8cf..3cb69b3ef1b5ad84ad95581c961c9a4f9694850f 100644 (file)
@@ -51,8 +51,8 @@ private:
        vector<Annotation> annotations_;
 };
 
-}
-} // data
-} // pv
+}  // namespace decode
+}  // namespace data
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_DATA_DECODE_ROWDATA_HPP
index b46af4925184fbf3b6bab8c14ef16a6eec2d5dc2..0cc7e6f85821bf9146f59c623af1935a896b8a3a 100644 (file)
@@ -40,7 +40,7 @@ struct MaxSize32Single;
 struct MediumSize32Multi;
 struct MaxSize32Multi;
 struct MaxSize32MultiIterated;
-}
+}  // namespace SegmentTest
 
 namespace pv {
 namespace data {
index 4ef3404594ecc1a26100e90add78cd5653fef543..09b6b0f4ca61236f90815a90b7a1337faba837cf 100644 (file)
@@ -94,5 +94,5 @@ void StoreProgress::on_progress_updated()
        }
 }
 
-} // dialogs
-} // pv
+}  // namespace dialogs
+}  // namespace pv
index b57ad25e501c18307587fe0ce96567b827693543..c42566289f83e5e7ee4656a4f6f94b87e6c32f3a 100644 (file)
@@ -65,7 +65,7 @@ private:
        pv::StoreSession session_;
 };
 
-} // dialogs
-} // pv
+}  // namespace dialogs
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_DIALOGS_SAVEPROGRESS_HPP
index 4a5e396c2e08e685d81205caa642608d3be73a13..9775998f0422127b56db25d4172b6bb10545c389 100644 (file)
@@ -250,5 +250,5 @@ void Channels::disable_all_channels()
        set_all_channels(false);
 }
 
-} // popups
-} // pv
+}  // namespace popups
+}  // namespace pv
index e525b4baad13e83d30357d60a964dde096625016..3701325bc704572758831b8781d800a56cc39065 100644 (file)
@@ -103,7 +103,7 @@ private:
        QSignalMapper check_box_mapper_;
 };
 
-} // popups
-} // pv
+}  // namespace popups
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_POPUPS_CHANNELS_HPP
index 9df12a0ff48208f734c78d38314d3a5bcc28acd9..2773eaae708ebdefbdc4906ee063400180d5395c 100644 (file)
@@ -78,5 +78,5 @@ void Bool::on_state_changed(int)
        commit();
 }
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
index 7e24e55576f88b03cdf38a945221cf61d25a16bc..619502dec5fe50cb436b091465192eb8d958c7f2 100644 (file)
@@ -48,7 +48,7 @@ private:
        QCheckBox *check_box_;
 };
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_PROP_BOOL_HPP
index eeb13fdd37e8e366011a0da1fafe14fd72cef77f..2e7f1d542038eb959739ea0d8d06a6a28e116513 100644 (file)
@@ -92,5 +92,5 @@ void Double::on_value_changed(double)
        commit();
 }
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
index 666ece979a30f973969b32097073d856aad1078c..863648d834b89dc6713578933184e735fd79045f 100644 (file)
@@ -62,7 +62,7 @@ private:
        QDoubleSpinBox *spin_box_;
 };
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_PROP_DOUBLE_HPP
index 9e4fcd0e35dd706baf15bb65e463a5e5e5bdb8da..7a4a7837ff0e319cd8cd23535321386311f0283d 100644 (file)
@@ -84,5 +84,5 @@ void Enum::on_current_item_changed(int)
        commit();
 }
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
index b3ce26cc488ad73d99f845c3f5ba57b77697f9d7..a397913c72c44ec8ac0782c991ab335179da79d4 100644 (file)
@@ -60,7 +60,7 @@ private:
        QComboBox *selector_;
 };
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_PROP_ENUM_HPP
index ce77b9592d3f66778ab6247b88b20cca32b9ca74..415ee866f6f764df6b02761d6c337a05cdd13a85 100644 (file)
@@ -157,5 +157,5 @@ void Int::on_value_changed(int)
        commit();
 }
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
index e94f6cbf7e549039b3c8f4ed435247f29000e861..fabd801324d7941c2fa7171d97f941c6cc0abb13 100644 (file)
@@ -59,7 +59,7 @@ private:
        QSpinBox *spin_box_;
 };
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_PROP_INT_HPP
index 6ae9894e8cdf0254ec93bd0b8ef9b3bd53feb190..9bb99c2e75b22102cb5c1c23721a7c3c9b0b7f37 100644 (file)
@@ -39,5 +39,5 @@ bool Property::labeled_widget() const
        return false;
 }
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
index 1a7b264dfc96429e6e3688bd81614337133c0374..7e547dec5a43444a9a5751b39ea9178b1a12a29a 100644 (file)
@@ -65,7 +65,7 @@ private:
        QString name_;
 };
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_PROP_PROPERTY_HPP
index a488e89a3b1fd5d7e30dd615e619ee248f8d908b..23c7f91321d567bbc59c31bad53b139cd8f1728a 100644 (file)
@@ -80,5 +80,5 @@ void String::on_text_edited(const QString&)
        commit();
 }
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
index 6032cab02a3c47f386538fc2f815469fe1abd039..b75b3ae65ab909803479d0e71a10c6c2d3c7ef27 100644 (file)
@@ -45,7 +45,7 @@ private:
        QLineEdit *line_edit_;
 };
 
-} // prop
-} // pv
+}  // namespace prop
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_PROP_STRING_HPP
index faf1396da6bd79f793b56b7bbbca5a715bf2e38f..c27afcb15f1177ed2b7951fec816279fc69ad92a 100644 (file)
@@ -64,7 +64,7 @@ class Meta;
 class OutputFormat;
 class Packet;
 class Session;
-}
+}  // namespace sigrok
 
 namespace pv {
 
index 8b638de8246da898b8212ee4d1c841781524e990..a5850060ec284e02c6ec1c4d0f2673c612d67b32 100644 (file)
@@ -295,4 +295,4 @@ void StoreSession::store_proc(vector< shared_ptr<data::SignalBase> > achannel_li
        output_stream_.close();
 }
 
-} // pv
+}  // namespace pv
index 941ef3270b7f3fc890f76baec861bc57c3ae10af..b6ead66df6822ee72833a6c3d4a300744ae70e84 100644 (file)
@@ -116,6 +116,6 @@ private:
        uint64_t start_sample_, sample_count_;
 };
 
-} // pv
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_STORESESSION_HPP
index b1190562a9338b15c25926002b0781fde9283d43..03e135c3ef2d7247b4d2375e356143e7aa1cddf3 100644 (file)
@@ -106,5 +106,5 @@ void ViewBase::data_updated()
 {
 }
 
-} // namespace view
+}  // namespace views
 } // namespace pv
index 06c82c30f496842cf4ff6754cdc29d351cb4dcf9..ce2ab2a9c01d6434a7cbc3f482964f980cb5b50d 100644 (file)
@@ -102,5 +102,5 @@ void ColourButton::paintEvent(QPaintEvent *event)
        p.drawRect(r);
 }
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
index 820ca17f3e893c792f372d4f4c16747775674c7a..9dbb2b27e2076baca4bbf77de14fcce1a8ec49c0 100644 (file)
@@ -61,7 +61,7 @@ private:
        QColor cur_colour_;
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_WIDGETS_COLOURBUTTON_HPP
index 38f3fd76234cea929c9eedab338d40292d76b365..170385b3bb4ab26cd49b1d3ef40141d7892d9282 100644 (file)
@@ -46,5 +46,5 @@ void ColourPopup::colour_selected(int, int)
        close();
 }
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
index fd4aea41417842c078d732ec9408d2c93a007449..6e4de20e1de9b32d9571a4b8012dd383109fc2c0 100644 (file)
@@ -48,7 +48,7 @@ private:
        QVBoxLayout layout_;
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_WIDGETS_COLOURPOPUP_HPP
index f5b9f2533378e938f0a918510229e4da204f5526..26805c87112485f7092ff77ccad3aa1b27a5c238 100644 (file)
@@ -73,5 +73,5 @@ void DecoderGroupBox::set_decoder_visible(bool visible)
                ":/icons/decoder-hidden.svg"));
 }
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
index 2371068b1480fa4adca956f9754e3ebba342f9ba..a622d0b2e1e80874e8a15c6f54791f272dad392f 100644 (file)
@@ -50,7 +50,7 @@ private:
        QPushButton show_hide_button_;
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_WIDGETS_DECODERGROUPBOX_HPP
index 994aad1b4e5669f244edb9e4ba2c690c2cfa55be..5e54589372c98373b79fef15db8a7b47ce339016 100644 (file)
@@ -68,5 +68,5 @@ void DecoderMenu::on_action(QObject *action)
        decoder_selected(dec);
 }
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
index cec4b574e3c7a0ca9674980e7552beefbcdaefb5..2fe7cd2b28e9e1c68f0ab093e456a44f80ed2c11 100644 (file)
@@ -48,7 +48,7 @@ private:
        QSignalMapper mapper_;
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_WIDGETS_DECODERMENU_HPP
index 99335ca18c3afebe2145a19193f94db1d24eddc6..bb18b792788cd3592eba4b46ddcb967cd17e89a7 100644 (file)
@@ -157,5 +157,5 @@ void DeviceToolButton::on_menu_hover_timeout()
        QToolTip::showText(QCursor::pos(), device_tooltip_);
 }
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
index 46b2240a0fc90c60c919f3c74053a6fd24ed522b..ee7b12ae81aaeed1decbb3f90c502ad7c675e28b 100644 (file)
@@ -109,7 +109,7 @@ private:
        QString device_tooltip_;
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_HPP
index 13c977d50cda7cedc8f72dd19f9e2599ca2cc56f..ff82b6aa2b13e206fba69e94dc5cf9fca3a4ed76 100644 (file)
@@ -95,5 +95,5 @@ void ExportMenu::on_action(QObject *action)
        format_selected((*iter).second);
 }
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
index 0980ffd54757c0eeb1f1694372c4c47a4e31ec4d..f3f104ddc2151eff445def182c8bcb0673cd45ba 100644 (file)
@@ -55,7 +55,7 @@ private:
        QSignalMapper mapper_;
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_WIDGETS_EXPORTMENU_HPP
index 145bbb43bc14c8357256287b947da89853ecce89..1a45aa6207dec2cd493719bfa86f5eb376a80afb 100644 (file)
@@ -84,5 +84,5 @@ void ImportMenu::on_action(QObject *action)
        format_selected((*iter).second);
 }
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
index cb33af9808d36733a337b0f12e3e55e62967f141..d1d5231afd33d5832c58179f1becb80cca38a4e8 100644 (file)
@@ -54,7 +54,7 @@ private:
        QSignalMapper mapper_;
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_WIDGETS_IMPORTMENU_HPP
index 8e443e4370985b78e1961e9ef5efb1762585ed40..3fc2eb20aa9be8e15c6f267a5aed8ebb6769c0bb 100644 (file)
@@ -53,5 +53,5 @@ void PopupToolButton::on_clicked(bool)
        popup_->show();
 }
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
index e7bf003290584ddf5a45381d193a28d6186ce5c2..cc722c803acee63785e15ff0c664aa13ec0949cf 100644 (file)
@@ -45,7 +45,7 @@ private:
        Popup *popup_;
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_WIDGETS_POPUPTOOLBUTTON_HPP
index d768620248003b14662a82d3f4dbde0ae5ba04a2..ea77c0fee867a0a42e645ad13e1df31939a0186a 100644 (file)
@@ -174,5 +174,5 @@ void SweepTimingWidget::set_value(uint64_t value)
        list_.setCurrentIndex(best_match);
 }
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
index 28fb9ac6949ea4e706d8b729798f8a9e43f774f8..0b61bf4a64c9ef03815b37c12b9e05e58cc9e251 100644 (file)
@@ -68,7 +68,7 @@ private:
        ValueType value_type_;
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_WIDGETS_SWEEPTIMINGWIDGET_HPP
index f5d8d0bf5e39ce55ea13f9b7da9b6bdda5b0feaa..fd52c504e240d1d907d1e47cdeca0ad9d2c0ab79 100644 (file)
@@ -116,5 +116,5 @@ void TimestampSpinBox::updateEdit()
        lineEdit()->setText(newtext);
 }
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
index 65c041c94bc4000d5352f97d1fcbfdc254aafb21..123ef876d7b19f205deea84c229fc7d97a5fc244 100644 (file)
@@ -86,7 +86,7 @@ private:
        void updateEdit();
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
 #endif
index 7617552731f0280b4544c68b7f9832171af57dcf..4e3382ba9153c90a2bcc962f03bdd7872e22a39a 100644 (file)
@@ -292,5 +292,5 @@ void WellArray::keyPressEvent(QKeyEvent* event)
 
 }
 
-} // namespace wellarray
+}  // namespace widgets
 } // namespace pv
index 6bed8ee133cd3ad2b6fa8305846bf72b477130a5..35a2f2f62e7f194b70ad49b9e23b8ec58dab4f0a 100644 (file)
@@ -135,5 +135,5 @@ private:
     WellArrayData *d;
 };
 
-} // namespace wellarray
+}  // namespace widgets
 } // namespace pv
index 0ac6f5fc08ea9363845f77f71daaa0e53a0c13a7..163bc7ac0ef6471a7f9e5403361161fbb1f6959f 100644 (file)
@@ -40,7 +40,7 @@ namespace {
        pv::util::SIPrefix yotta       = pv::util::SIPrefix::yotta;
 
 /*     pv::util::TimeUnit Time = pv::util::TimeUnit::Time; // Not currently used */
-}
+}  // namespace
 
 BOOST_AUTO_TEST_SUITE(UtilTest)