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

In honor of "Change Spaces To Tabs Day", circa 2009 #1770

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 17 additions & 17 deletions CMakeTestFiles/TestICGLinkedLibs.cpp
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// `llvm/Support/Host.h` is deprecated in favour of `llvm/TargetParser/Host.h` since clang 17
#if LIBCLANG_MAJOR > 16
#include "llvm/TargetParser/Host.h"
// `llvm/Support/Host.h` is deprecated in favour of `llvm/TargetParser/Host.h` since clang 17
#if LIBCLANG_MAJOR > 16
#include "llvm/TargetParser/Host.h"
#else
#include "llvm/Support/Host.h"
#include "llvm/Support/Host.h"
#endif
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"

#include "clang/Basic/Builtins.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Basic/TargetOptions.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Basic/FileManager.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Lex/PreprocessorOptions.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Parse/ParseAST.h"
#include "clang/Basic/Builtins.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Basic/TargetOptions.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Basic/FileManager.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Lex/PreprocessorOptions.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Parse/ParseAST.h"

int main() {
return 0;
int main() {
return 0;
}
4 changes: 2 additions & 2 deletions test/SIM_anon_enum/models/starter.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "starter.h"
#include "starter.h"

Starter::Starter() {
Starter::Starter() {

}
2 changes: 1 addition & 1 deletion test/SIM_checkpoint_data_recording/models/Foo.cpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#include "Foo.hh"
#include "Foo.hh"
2 changes: 1 addition & 1 deletion test/SIM_delete_default_constructor/models/empty.cpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#include "empty.h"
#include "empty.h"
6 changes: 3 additions & 3 deletions test/SIM_delete_default_constructor/models/starter.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "starter.h"
#include "starter.h"

Starter::Starter(int foo) {
Starter::Starter(int foo) {
}

Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
#ifndef TRICK_ICG
#include <Python.h>
#ifndef TRICK_ICG
#include <Python.h>
#endif
#include <iostream>
#include <sstream>
#include <iostream>
#include <sstream>

#include "InputProcessSimObject/include/InputProcessSimObject.hh"
#include "InputProcessSimObject/include/InputProcessSimObject.hh"

Trick::InputProcessSimObject::InputProcessSimObject(std::string in_function) {
Trick::InputProcessSimObject::InputProcessSimObject(std::string in_function) {

python_call_function = in_function ;
return_value = 0 ;
python_call_function = in_function ;
return_value = 0 ;

}

int Trick::InputProcessSimObject::call_function( Trick::JobData * curr_job ) {
int Trick::InputProcessSimObject::call_function( Trick::JobData * curr_job ) {

std::stringstream ss ;
std::stringstream ss ;

ss << python_call_function << "(" << curr_job->id << ")" ;
PyRun_SimpleString(ss.str().c_str()) ;
ss << python_call_function << "(" << curr_job->id << ")" ;
PyRun_SimpleString(ss.str().c_str()) ;

return( return_value ) ;
return( return_value ) ;
}

double Trick::InputProcessSimObject::call_function_double( Trick::JobData * curr_job ) {
double Trick::InputProcessSimObject::call_function_double( Trick::JobData * curr_job ) {

(void)curr_job ;
return(0.0) ;
(void)curr_job ;
return(0.0) ;

}

2 changes: 1 addition & 1 deletion test/SIM_exclusion_mechanisms/models/ExtLibDir.cpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This file should be excluded from the build. Is is meant to cause a compiler error if Trick tries to build it.
This file should be excluded from the build. Is is meant to cause a compiler error if Trick tries to build it.
4 changes: 2 additions & 2 deletions test/SIM_exclusion_mechanisms/models/Foo.cpp
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// @trick_link_dependency{ExtLibDir.cpp}
// @trick_link_dependency{ext_lib_dir/ExtLibDir.cpp}
// @trick_link_dependency{ExtLibDir.cpp}
// @trick_link_dependency{ext_lib_dir/ExtLibDir.cpp}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This file should be excluded from the build. Is is meant to cause a compiler error if Trick tries to build it.
This file should be excluded from the build. Is is meant to cause a compiler error if Trick tries to build it.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This file should be excluded from the build. Is is meant to cause a compiler error if Trick tries to build it.
This file should be excluded from the build. Is is meant to cause a compiler error if Trick tries to build it.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This file should be excluded from the build. Is is meant to cause a compiler error if Trick tries to build it.
This file should be excluded from the build. Is is meant to cause a compiler error if Trick tries to build it.
28 changes: 14 additions & 14 deletions test/SIM_exec_set_time_tic_value/models/ttvtest.cpp
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#include <cstdio>
#include "ttvtest.h"
int TTVTest::scheduled() {
//message_publish(MSG_NORMAL, "Hello World!\n");
return 0;
#include <cstdio>
#include "ttvtest.h"
int TTVTest::scheduled() {
//message_publish(MSG_NORMAL, "Hello World!\n");
return 0;
}

int TTVTest::scheduled2() {
//message_publish(MSG_NORMAL, "Hello World!\n");
return 0;
int TTVTest::scheduled2() {
//message_publish(MSG_NORMAL, "Hello World!\n");
return 0;
}

int TTVTest::scheduled3() {
//message_publish(MSG_NORMAL, "Hello World!\n");
return 0;
int TTVTest::scheduled3() {
//message_publish(MSG_NORMAL, "Hello World!\n");
return 0;
}

int TTVTest::scheduled4() {
//message_publish(MSG_NORMAL, "Hello World!\n");
return 0;
int TTVTest::scheduled4() {
//message_publish(MSG_NORMAL, "Hello World!\n");
return 0;
}
4 changes: 2 additions & 2 deletions test/SIM_isystem/models/my_code/Foo.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// @trick_link_dependency{Warning.cpp}
// @trick_link_dependency{Warning.cpp}

#include "Warning.hh"
#include "Warning.hh"
2 changes: 1 addition & 1 deletion test/SIM_isystem/models/third_party/Warning.cpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#include <Warning.hh>
#include <Warning.hh>
94 changes: 47 additions & 47 deletions test/SIM_job_class_order/models/starter.cpp
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
#include "starter.h"
#include <iostream>
#include "trick/exec_proto.hh"
#include "trick/exec_proto.h"
#include "starter.h"
#include <iostream>
#include "trick/exec_proto.hh"
#include "trick/exec_proto.h"

void Starter::sched () {
sched_calls++;
void Starter::sched () {
sched_calls++;
}

void Starter::custom () {
custom_calls++;
void Starter::custom () {
custom_calls++;
}

void Starter::top () {
top_calls++;
void Starter::top () {
top_calls++;
}

void Starter::automatic () {
void Starter::automatic () {

Trick::JobData * thisJob = exec_get_curr_job() ;
thisJob->set_next_call_time(exec_get_time_tics() + exec_get_time_tic_value());
automatic_calls++;
Trick::JobData * thisJob = exec_get_curr_job() ;
thisJob->set_next_call_time(exec_get_time_tics() + exec_get_time_tic_value());
automatic_calls++;
}

void Starter::automatic_last () {
void Starter::automatic_last () {

Trick::JobData * thisJob = exec_get_curr_job() ;
thisJob->set_next_call_time(exec_get_time_tics() + exec_get_time_tic_value());
Trick::JobData * thisJob = exec_get_curr_job() ;
thisJob->set_next_call_time(exec_get_time_tics() + exec_get_time_tic_value());

automatic_last_calls++;
automatic_last_calls++;
}

void Starter::end() {
end_calls++;
void Starter::end() {
end_calls++;
}

void Starter::deriv() {
deriv_calls++;
void Starter::deriv() {
deriv_calls++;
}

int Starter::integ() {
integ_calls++;
int Starter::integ() {
integ_calls++;

return 0;
return 0;
}

void Starter::test_calls() {
if (top_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "top_of_frame job never called");
}
void Starter::test_calls() {
if (top_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "top_of_frame job never called");
}

if (custom_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "custom job never called");
}
if (custom_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "custom job never called");
}

if (sched_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "scheduled job never called");
}
if (sched_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "scheduled job never called");
}

if (automatic_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "automatic job never called");
}
if (automatic_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "automatic job never called");
}

if (automatic_last_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "automatic_last job never called");
}
if (automatic_last_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "automatic_last job never called");
}

if (deriv_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "derivative job never called");
}
if (deriv_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "derivative job never called");
}

if (integ_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "integration job never called");
}
if (integ_calls == 0) {
exec_terminate_with_return(1, __FILE__, __LINE__, "integration job never called");
}

}
44 changes: 22 additions & 22 deletions test/SIM_leaks/models/Leaker/Leaker.cpp
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
#include <vector>
#include <stdlib.h>
#include <string.h>
#include <vector>
#include <stdlib.h>
#include <string.h>

/* Model include files. */
#include "sim_services/MemoryManager/include/memorymanager_c_intf.h"
/* Model include files. */
#include "sim_services/MemoryManager/include/memorymanager_c_intf.h"

std::vector< int > dv ;
std::vector< int > dv ;

/* ENTRY POINT */
int Leaker() {
/* ENTRY POINT */
int Leaker() {

int * i_malloc = (int *)malloc( sizeof(int) ) ;
int * i_malloc = (int *)malloc( sizeof(int) ) ;

int * i_calloc = (int *)calloc( 1 , sizeof(int) ) ;
int * i_calloc = (int *)calloc( 1 , sizeof(int) ) ;

#if 0
int * i_realloc = NULL ;
i_realloc = (int *)realloc( i_realloc, sizeof(int) ) ;
#if 0
int * i_realloc = NULL ;
i_realloc = (int *)realloc( i_realloc, sizeof(int) ) ;
#endif

int * i_new = new int ;
int * i_new = new int ;

int * ia_new = new int[10] ;
int * ia_new = new int[10] ;

char * str = strdup("hello") ;
char * str = strdup("hello") ;

int ii ;
for ( ii = 0 ; ii < 100 ; ii++ ) {
dv.push_back(ii) ;
}
int ii ;
for ( ii = 0 ; ii < 100 ; ii++ ) {
dv.push_back(ii) ;
}

/* RETURN */
return( 0 );
/* RETURN */
return( 0 );

}

2 changes: 1 addition & 1 deletion test/SIM_parse_s_define/models/Classes.cpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
void foo() {};
void foo() {};
Loading
Loading