Cleanup includes (#20925)

* remove #include <pthread.h>

* remove #include<stdbool.h> for cc files

* remove #include<iostream>
old-commit-hash: 0495426535
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent 490e977cda
commit 5609f32cee
  1. 1
      selfdrive/boardd/boardd.cc
  2. 1
      selfdrive/boardd/panda.cc
  3. 2
      selfdrive/boardd/panda.h
  4. 1
      selfdrive/camerad/cameras/camera_common.h
  5. 2
      selfdrive/camerad/cameras/camera_frame_stream.h
  6. 2
      selfdrive/camerad/cameras/camera_qcom.cc
  7. 2
      selfdrive/camerad/cameras/camera_qcom.h
  8. 1
      selfdrive/camerad/cameras/camera_qcom2.h
  9. 1
      selfdrive/camerad/cameras/camera_webcam.cc
  10. 2
      selfdrive/camerad/cameras/camera_webcam.h
  11. 2
      selfdrive/common/gpio.h
  12. 1
      selfdrive/locationd/ublox_msg.cc
  13. 1
      selfdrive/logcatd/logcatd_systemd.cc
  14. 1
      selfdrive/loggerd/logger.cc
  15. 1
      selfdrive/loggerd/omx_encoder.cc
  16. 1
      selfdrive/loggerd/omx_encoder.h
  17. 1
      selfdrive/modeld/transforms/loadyuv.h
  18. 1
      selfdrive/modeld/transforms/transform.h
  19. 1
      selfdrive/sensord/sensors/file_sensor.cc
  20. 2
      selfdrive/sensord/sensors/i2c_sensor.cc
  21. 1
      selfdrive/sensord/sensors/light_sensor.cc
  22. 2
      selfdrive/ui/qt/offroad/settings.cc
  23. 1
      selfdrive/ui/qt/offroad/wifiManager.cc
  24. 1
      selfdrive/ui/ui.cc
  25. 1
      selfdrive/ui/ui.h

@ -13,7 +13,6 @@
#include <bitset>
#include <cassert>
#include <ctime>
#include <iostream>
#include <thread>
#include <unordered_map>

@ -3,7 +3,6 @@
#include <unistd.h>
#include <cassert>
#include <iostream>
#include <stdexcept>
#include <vector>

@ -1,7 +1,5 @@
#pragma once
#include <pthread.h>
#include <atomic>
#include <cstdint>
#include <ctime>

@ -1,6 +1,5 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>

@ -1,7 +1,5 @@
#pragma once
#include <stdbool.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
#include <OpenCL/cl.h>

@ -4,8 +4,6 @@
#include <fcntl.h>
#include <math.h>
#include <poll.h>
#include <pthread.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <unistd.h>

@ -1,7 +1,5 @@
#pragma once
#include <pthread.h>
#include <stdbool.h>
#include <stdint.h>
#include <atomic>

@ -1,7 +1,6 @@
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <pthread.h>
#include <media/cam_req_mgr.h>

@ -1,7 +1,6 @@
#include "selfdrive/camerad/cameras/camera_webcam.h"
#include <assert.h>
#include <pthread.h>
#include <string.h>
#include <unistd.h>

@ -1,7 +1,5 @@
#pragma once
#include <stdbool.h>
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else

@ -1,7 +1,5 @@
#pragma once
#include <stdbool.h>
// Pin definitions
#ifdef QCOM2
#define GPIO_HUB_RST_N 30

@ -8,7 +8,6 @@
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <unordered_map>
#include "selfdrive/common/swaglog.h"

@ -2,7 +2,6 @@
#include <cassert>
#include <csignal>
#include <iostream>
#include <map>
#include <string>

@ -2,7 +2,6 @@
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

@ -4,7 +4,6 @@
#include <assert.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>

@ -1,6 +1,5 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>

@ -1,7 +1,6 @@
#pragma once
#include <inttypes.h>
#include <stdbool.h>
#include "selfdrive/common/clutil.h"

@ -1,7 +1,6 @@
#pragma once
#include <inttypes.h>
#include <stdbool.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__

@ -1,6 +1,5 @@
#include "file_sensor.h"
#include <iostream>
#include <string>
FileSensor::FileSensor(std::string filename) : file(filename) {

@ -1,7 +1,5 @@
#include "i2c_sensor.h"
#include <iostream>
int16_t read_12_bit(uint8_t lsb, uint8_t msb){
uint16_t combined = (uint16_t(msb) << 8) | uint16_t(lsb & 0xF0);
return int16_t(combined) / (1 << 4);

@ -1,6 +1,5 @@
#include "light_sensor.h"
#include <iostream>
#include <string>
#include "selfdrive/common/timing.h"

@ -1,8 +1,6 @@
#include "settings.h"
#include <cassert>
#include <iostream>
#include <sstream>
#include <string>
#ifndef QCOM

@ -3,7 +3,6 @@
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <set>
#include "selfdrive/common/params.h"

@ -5,7 +5,6 @@
#include <unistd.h>
#include <cmath>
#include <iostream>
#include "selfdrive/common/swaglog.h"
#include "selfdrive/common/util.h"

@ -3,7 +3,6 @@
#include <atomic>
#include <map>
#include <memory>
#include <sstream>
#include <string>
#include <QObject>

Loading…
Cancel
Save