Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc target missing declarations errors #464

Merged
merged 1 commit into from
Oct 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/amb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SCENARIO("implicit amb sample"){
printf("//! [implicit amb sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("threaded amb sample"){
printf("//! [threaded amb sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SCENARIO("buffer count+skip sample"){
printf("//! [buffer count+skip sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("buffer period+skip+coordination sample"){
printf("//! [buffer period+skip+coordination sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/combine_latest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SCENARIO("combine_latest sample"){
printf("//! [combine_latest sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("Coordination combine_latest sample"){
printf("//! [Coordination combine_latest sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/concat_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SCENARIO("concat_map sample"){
printf("//! [concat_map sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("threaded concat_map sample"){
printf("//! [threaded concat_map sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/flat_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SCENARIO("flat_map sample"){
printf("//! [flat_map sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("threaded flat_map sample"){
printf("//! [threaded flat_map sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/from.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SCENARIO("from sample"){
printf("//! [from sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("threaded from sample"){
printf("//! [threaded from sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/group_by.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SCENARIO("group_by sample"){
}

//! [group_by full intro]
bool less(int v1, int v2){
static bool less(int v1, int v2){
return v1 < v2;
}
//! [group_by full intro]
Expand Down
3 changes: 3 additions & 0 deletions Rx/v2/examples/doxygen/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#include <iostream>
#include <thread>
#include <string>

#include "main.hpp"

std::string get_pid() {
std::stringstream s;
s << std::this_thread::get_id();
Expand Down
3 changes: 3 additions & 0 deletions Rx/v2/examples/doxygen/main.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#pragma once

std::string get_pid();
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/merge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SCENARIO("implicit merge sample"){
printf("//! [implicit merge sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("threaded merge sample"){
printf("//! [threaded merge sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/merge_delay_error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SCENARIO("implicit merge_delay_error sample"){
printf("//! [implicit merge_delay_error sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("threaded merge_delay_error sample"){
printf("//! [threaded merge_delay_error sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/observe_on.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "rxcpp/rx-test.hpp"
#include "catch.hpp"

std::string get_pid();
#include "main.hpp"

SCENARIO("observe_on sample"){
printf("//! [observe_on sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/pairwise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SCENARIO("pairwise short sample"){
printf("//! [pairwise short sample]\n");
}

//std::string get_pid();
//#include "main.hpp"
//
//SCENARIO("threaded flat_map sample"){
// printf("//! [threaded flat_map sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SCENARIO("range sample"){
printf("//! [range sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("threaded range sample"){
printf("//! [threaded range sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "rxcpp/rx-test.hpp"
#include "catch.hpp"

std::string get_pid();
#include "main.hpp"

SCENARIO("replay sample"){
printf("//! [replay sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/skip_until.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SCENARIO("skip_until sample"){
printf("//! [skip_until sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("threaded skip_until sample"){
printf("//! [threaded skip_until sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/subscribe_on.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "rxcpp/rx-test.hpp"
#include "catch.hpp"

std::string get_pid();
#include "main.hpp"

SCENARIO("subscribe_on sample"){
printf("//! [subscribe_on sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/take_until.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SCENARIO("take_until time sample"){
printf("//! [take_until time sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("threaded take_until sample"){
printf("//! [threaded take_until sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/with_latest_from.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SCENARIO("with_latest_from sample"){
printf("//! [with_latest_from sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("Coordination with_latest_from sample"){
printf("//! [Coordination with_latest_from sample]\n");
Expand Down
2 changes: 1 addition & 1 deletion Rx/v2/examples/doxygen/zip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SCENARIO("zip sample"){
printf("//! [zip sample]\n");
}

std::string get_pid();
#include "main.hpp"

SCENARIO("Coordination zip sample"){
printf("//! [Coordination zip sample]\n");
Expand Down