-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
71 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "bar.h" | ||
|
||
int bar() | ||
{ | ||
return 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef BAR_H | ||
#define BAR_H | ||
|
||
int bar(); | ||
|
||
|
||
#endif // BAR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <iostream> | ||
#include "foo.h" | ||
#include "bar.h" // using bar.cpp | ||
|
||
using namespace std; | ||
|
||
void foo() | ||
{ | ||
bar(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef FOO_H | ||
#define FOO_H | ||
|
||
void foo(); | ||
|
||
|
||
|
||
#endif // FOO_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <iostream> | ||
#include <vector> | ||
#include <string> | ||
|
||
#include "foo.h" // using foo.cpp | ||
#include "bar.h" // using bar.cpp | ||
|
||
using namespace std; | ||
|
||
int main() | ||
{ | ||
foo(); | ||
bar(); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
cpps --clear -c gcc -v main.cpp | ||
# CHECK: compiling main.cpp | ||
# CHECK-NEXT: compiling foo.cpp | ||
# CHECK-NEXT: compiling bar.cpp | ||
# CHECK-NEXT: linking main.cpp.gcc.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ECHO OFF | ||
|
||
cpps --clear -c mingw -v main.cpp | ||
rem CHECK: compiling main.cpp | ||
rem CHECK-NEXT: compiling foo.cpp | ||
rem CHECK-NEXT: compiling bar.cpp | ||
rem CHECK-NEXT: linking main.cpp.mingw.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@ECHO OFF | ||
|
||
cpps --clear -c vc -v main.cpp | ||
rem CHECK: compiling main.cpp | ||
rem CHECK-NEXT: compiling foo.cpp | ||
rem CHECK-NEXT: compiling bar.cpp | ||
rem CHECK-NEXT: linking main.cpp.vc.exe | ||
|